Keep in mind, $chmod vgo+r note is different from $chmod 444 note. First gives additional read access to all 3 groups, without modifying other (write or execute) accesses. While second command reset permission to readonly for all 3 groups.
@Ayush Negi yes '=' means reasigning the value and + means adding to it. Same when used octal notation. $ chmod 444 note means U = 100, G = 100, O = 100 means read = 1 and write and execute 0 for all.
#include #include #include #include int main() { int f; char buff[10]; f=open("seeking",O_RDWR); lseek(f,10,SEEK_CUR); /* lseek(f,5,SEEK_SET); */ read(f,buff,1); write(1,buff,1); } If we run this code, then the answer is 'a' because we have to make 10 jumps from the start, then after uncommenting the second lseek call, the answer is 6 as we have to make 5 jumps from the start, therefore the answer is 6, but in the question position(index) is asked, and hence the answer is 5, as 6 is at index 5. I hope everyone understands.
I really love the way you teach bro or sir , and as everyone i can't thank-you more than enough really for your beautiful courses of all and i really loved the technique you implement ❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️ lots of Love bro
Just want to add one thing here...keep in mind that for: lseek(n,10,SEEK_CUR):- including current element count 10 times lseek(n,5,SEEK_SET ):- set to 5 (1 based indexing)
Sir its a request to make videos on file systems.... I really like the way you are explaining,,,,no revision is needed once i watched the video lecture of yourss..
This video is on Unix MCQs...which will helpful for IT trainees and Students. Take the test and keep practicing!!! #happy_learning ua-cam.com/video/ESuKD3DqTxI/v-deo.html
This video is on Unix MCQs...which will helpful for IT trainees and Students. Take the test and keep practicing!!! #happy_learning ua-cam.com/video/ESuKD3DqTxI/v-deo.html
Sir, it's given that index starts from 0.. Then after executing the first sleek the pointer will be at "a" right? Then for the second lseek the pointer would point to 6? Final answer would be 6 right?
00:02 Understanding and using Chmod command in UNIX 01:33 Understanding file permissions in Linux 02:57 Using Chmod command to assign permissions in Linux 04:25 Understanding Linux terminal commands and octal notation. 05:51 Understanding Linux permissions for read, write, and execute 06:59 Chmod 444 command assigns read permission to all 3 categories of the file. 08:23 Using Lseek command to move read write head in a file 09:50 Understanding LSEEK command in Linux.
bro 1 question for you - lol do you know all the languages and everything > like sql, programming linux unix what is it that you don't know ? btw keep up the great work veera :)
hello sir...operating system mein resources vale question pe ek video bnaiyga jaise ..6 indstance ha or n processes then kitne resources mein deadlock accour hoga ya deadlock free hoga...issko easy way mein kaise kre...kuch formula se ho jate ha kuch nhi.....to sir please exam se pehle agar iska soltuion kr doge to more helpful.
Sir I have Doubt in question 1 as in the 4th Option 'chmod u+r, g+r, o-x note' it gives read rights to user and group and removing only execute right from the others 'O' part this means that 'O' have read rights ,only the execution one is removed this means all three users have rights of read in this command also.. so this option is also correct.?
This video is on Unix MCQs...which will helpful for IT trainees and Students. Take the test and keep practicing!!! #happy_learning ua-cam.com/video/ESuKD3DqTxI/v-deo.html
Could you please tell how to write a she'll script to if same file in in and out directory than it will automatically rename the same file in in directory
This video is on Unix MCQs...which will helpful for IT trainees and Students. Take the test and keep practicing!!! #happy_learning ua-cam.com/video/ESuKD3DqTxI/v-deo.html
love from Pk , i have 10 friends and we watched your videos in group study all of us got 90+ marks in our OS paper thank you sir...
Wow..congratulations
Have you also made a notes Muhammad?
Great spirit
Hello bro aaplog notes kaise banaye hai please reply me 😊😊
tumhare vaha OS bhi padhate....may be co-co-curricular💀
Sir, you get Award for good teaching and best teacher
This tutorial was clear and to the point.
Very helpful.
Thank you.
You have a great talent of explanation .......🙏🏻
Thanks for all sir...🙏🏻
Ur teaching style is very nice thnx u sir providing this class
Keep in mind, $chmod vgo+r note is different from $chmod 444 note. First gives additional read access to all 3 groups, without modifying other (write or execute) accesses. While second command reset permission to readonly for all 3 groups.
@Ayush Negi yes '=' means reasigning the value and + means adding to it. Same when used octal notation. $ chmod 444 note means U = 100, G = 100, O = 100 means read = 1 and write and execute 0 for all.
Strong & ever best effort..best teacher❤️.. God bless you Sir🙏
Love the way u clear our all doubts..thanku
Great explanation as always! ❤
Videos helpful for diploma 5th sem😇thanku so much 🥳🤩
Thank you so much sir...love the way you explain......
#include
#include
#include
#include
int main()
{
int f;
char buff[10];
f=open("seeking",O_RDWR);
lseek(f,10,SEEK_CUR);
/* lseek(f,5,SEEK_SET); */
read(f,buff,1);
write(1,buff,1);
}
If we run this code, then the answer is 'a' because we have to make 10 jumps from the start, then after uncommenting the second lseek call, the answer is 6 as we have to make 5 jumps from the start, therefore the answer is 6, but in the question position(index) is asked, and hence the answer is 5, as 6 is at index 5.
I hope everyone understands.
Yes, I was thinking the same. Thanks for clarifying.
Many thanks. 🙏
thx
Wow great sir thank you 😊
Very helpful hai bhai tq for your video's
Love from chhattisgarh ❤❤
Sir your video understandable for each.
Best 👍 teaching sir 😄
I really love the way you teach bro or sir , and as everyone i can't thank-you more than enough really for your beautiful courses of all and i really loved the technique you implement
❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️ lots of Love bro
How sir u jumped directly into questions without teaching linux commands , i don;t get it ??????????????
Same, this is unparallel to the previous lecture.
Just want to add one thing here...keep in mind that
for:
lseek(n,10,SEEK_CUR):- including current element count 10 times
lseek(n,5,SEEK_SET ):- set to 5 (1 based indexing)
counting 10 including the current element is same as a 1 based indexing. So does that mean lseek always uses a 1 based indexing?
@@aldolhitlercondensation1363 yes we can say that
Notes kaise banaye hai bhai please reply me ❤❤
thanks
Very well explained 💯 best teacher
Thanks alot bro am back.....on leave na so full time for my study and continuously following you bro.
Sir please make videos on all topics of Linux
Sir you explain so well thank you so much sir keep it up
Sir you are nice.love the way how you represent chapter wise topis💚
Hello sir
Index ka address 0 h but usme value 1 h is hisab se to lseek(n,10 seek_cur) me ans A hona chahiye na ki 0 pls explain sir jii
Nice sir g thank you so much
Sir,teaches very good good good and I help for gate exam thank you so much sir
best lecture ever
🥰🥰
Thank you sir.....
awsome concept sir
Best tiacing sir 🎉
Love you sir jii😍😍😍😍😘😘😘😘😘😘😘
Your videos very useful for me
Great♥
Thank you sir❤️
Nice class sir
Thank you sir.. Pls screenshot lene k liye bhi last me thoda time de diya kijiye..
this guy sold his soul, amen 6:00
Thankuu sir...🙏🙏
Sir its a request to make videos on file systems.... I really like the way you are explaining,,,,no revision is needed once i watched the video lecture of yourss..
This video is on Unix MCQs...which will helpful for IT trainees and Students. Take the test and keep practicing!!!
#happy_learning
ua-cam.com/video/ESuKD3DqTxI/v-deo.html
I m watching this one day before exam
Nice 👌
Best for Aktu syllabus 👍
thanks a lot
You are great
Thank you sir.. :)
Thank you sir pls Unix commands pe aur video
thank you
Awesome
5th index aur 5th position are two different things, what will SEEK_SET actually do? or is it the value 5?
It is referring to the position not value.
@@shrutirohila7869 then the final answer should actually be 6, right?
wo 5th ko as element nhi position leke bata rahe hai tm 1 base indexing samjho
Same question..... Final answer 6 h na... Please reply
Great effort
Thnku sir
Allah bless u sir.... .
Thanks
sir loved your videos ,please provide sub titles for os and dbms playlists also
Re duhhh!! write re duhhh!!
😂🔥🔥
😂🔥
8 hours before exam 🥲
Super sir
In description it's Linux command.. But at the starting u said about UNIX command
👍🏻👍🏻👍🏻👍🏻
Pls. Sir make more videos on UNIX commands...
This video is on Unix MCQs...which will helpful for IT trainees and Students. Take the test and keep practicing!!!
#happy_learning
ua-cam.com/video/ESuKD3DqTxI/v-deo.html
Thank you sir
Where you discussed kernal mode and user mode? Time stamp?
Hello sir..htet series bhi start kre.. Plz.. U tech very well.. Plz do something for htet aspirants also
s. rathee I cleared it two times .what you want to ask regarding exam?
@@nishah4058 hi can we chat on arnavantil2017@gmail.com
@@nishah4058
ma'am i want to know how to prepare for htet exam
3 answer is 10 because we have to put lseek 2 time 10:53
Sir, it's given that index starts from 0.. Then after executing the first sleek the pointer will be at "a" right? Then for the second lseek the pointer would point to 6? Final answer would be 6 right?
thats what i was thinking rn :/
In my opinion, if t=10 => number of steps to move, then it moves from 0 to t-1, which makes t steps. And hence it stops at '0'
Same doubt
2:09
Readaaa , write , readaaa write , readaaaa writeeaa 😂😂😂
00:02 Understanding and using Chmod command in UNIX
01:33 Understanding file permissions in Linux
02:57 Using Chmod command to assign permissions in Linux
04:25 Understanding Linux terminal commands and octal notation.
05:51 Understanding Linux permissions for read, write, and execute
06:59 Chmod 444 command assigns read permission to all 3 categories of the file.
08:23 Using Lseek command to move read write head in a file
09:50 Understanding LSEEK command in Linux.
bro 1 question for you -
lol do you know all the languages and everything > like sql, programming linux unix what is it that you don't know ?
btw keep up the great work veera :)
hello sir...operating system mein resources vale question pe ek video bnaiyga jaise ..6 indstance ha or n processes then kitne resources mein deadlock accour hoga ya deadlock free hoga...issko easy way mein kaise kre...kuch formula se ho jate ha kuch nhi.....to sir please exam se pehle agar iska soltuion kr doge to more helpful.
sir aap utube k alawa bhi khi pr videos dalte ho ya utube p pura pura course h??? plz plz plz reply
Hi sir can you please start a series on sbi it officer topics of CS ..... usme 80 questions aayenge cs se Please..
sir 3rd que mai : (n,5,seek_set) use karne k bad 5th index pe chala jayega ? toh uss position pe value 6 hai na ya 5 ? apne 5 pe arrow kiya hai
Sir lecture sequence me nhii hai?
I also think the same. Lectures are not in sequence.
Sir, I am regular your student, pardon, in first option of first question you did not mention file name 'note' please
Sir I have Doubt in question 1 as in the 4th Option 'chmod u+r, g+r, o-x note' it gives read rights to user and group and removing only execute right from the others 'O' part this means that 'O' have read rights ,only the execution one is removed this means all three users have rights of read in this command also..
so this option is also correct.?
Same doubt!!
What is the meaning of a in A) OPTION in(question 1) change mode question
Brother can i get notes of the class in any way? Thank you
Sir aapki koi site he kya jaha se notes mil jaye
thanks 10,0000₹ sent by me 😂😂😂😂
sir 9:09 per index to 0 se start hota hai na
Can anyone tell me if I made a mistake here or not. Spelling - "LSEEK".
Sir operating system me file system implementation ke videos bhi dal dijiye na....
This video is on Unix MCQs...which will helpful for IT trainees and Students. Take the test and keep practicing!!!
#happy_learning
ua-cam.com/video/ESuKD3DqTxI/v-deo.html
Books padhne mujhe bata do ki books ko starting se padhna chahiye ya jo topic samjhna hai usko padhna hoch poch ho jata hai 😢
Sir OS. K liy book kon si leni chaiye pdhne k liy..which book best As a studend of diploma ..2nd year..?????
Operating System Concept by Galvin
First commands to batana chaiye na sir sare direct questions kaise chalega
Plz net exam ke new syllabus portion cover kariyea sir os me file system ,distribution operating system ,and windows, security
Sir notes kaise banaye pdf hai ya nahi please reply sir ❤❤
Could you please tell how to write a she'll script to if same file in in and out directory than it will automatically rename the same file in in directory
Mai...2nd...😘
Ye questions kaise hinge bhai.. last video playlist me toh kuch aur thi yrr
hlo sir plzz linux chapter ke imp topics btado University exam k liye bhut help ho jayegi🙏🙏
Sir me commerce student hu .mp competitive exam k liye muje linux and unix sikhna hai
ans should be 6 for last question.
Sir,
NET-19 mein ek question aaya tha "count no of lines in all files having .c, .h extension" ka answer Kya hoga.
Order m video upload kr di jiye
sir ye lecture previous lect. ke baad achanak kaise aaya?
bilkul sara mode khrab kr dya
Sir pls tell octal representation of this question -rwSr-r
This video is on Unix MCQs...which will helpful for IT trainees and Students. Take the test and keep practicing!!!
#happy_learning
ua-cam.com/video/ESuKD3DqTxI/v-deo.html
Sir linux GUI based hai ya CUI