LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 06-13-2009, 12:45 AM   #1
rajeshkahara
LQ Newbie
 
Registered: Nov 2003
Distribution: red hat
Posts: 18

Rep: Reputation: 1
what goes on inside OS when we type df in shell.


Hi all,

I was interviewed with a question - What all steps happen when you run a command in shell. Lets say #df <- enter.

Can someone please point me to some link having in-depth explanation about this please. I would like to know about system calls, open, load and closing files, a generic sequence infact.

Thanks a lot in advance .

-Rajesh.
 
Old 06-14-2009, 07:58 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,140
Blog Entries: 54

Rep: Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791
How about doing a wee bit research yourself? You could start with strace -v /bin/bash -c 'strace -v /bin/df' or 'strace -v /bin/df' and take it from there?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Shell variable inside the C program Varsha_vdd Linux - Newbie 5 06-17-2008 09:42 AM
perl inside a shell script baidym Linux - Newbie 2 05-05-2008 06:42 PM
embedded shell script from inside fortran TheBrick Programming 2 05-22-2006 08:23 AM
changing the user inside a shell script sanjith11 Programming 2 04-22-2004 07:44 AM
Standard inside a shell program sammathew Linux - Software 1 09-17-2003 08:32 PM


All times are GMT -5. The time now is 01:29 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration