LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-25-2008, 01:38 AM   #1
darwins
LQ Newbie
 
Registered: Dec 2008
Posts: 18

Rep: Reputation: 0
Smile command and its corresponding system call


If i execute a command using shell(eg:bash),does shell calls the corresponding system call?For eg:If i execute the command "mkdir prg" using shell,does the shell calls the corresponding system call,"mkdir(name,mode)"?
 
Old 12-25-2008, 07:50 AM   #2
a_minor
LQ Newbie
 
Registered: Dec 2008
Location: Tehran , IRN
Distribution: Fedora core 16
Posts: 23

Rep: Reputation: 0
I hear about this , and I khow that some system calls such as "mkdir(,)" has corresponding command for executing in command line environment and i think that this mkdir command is exactly corresponding systemcall, not using this system call for implementation of that command.
for more information you can refer to man page of mkdir and mkdir(2) and compare them
 
Old 12-25-2008, 08:02 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
What is a "system call" in this context? The way I have seen the term used is when calling shell commands from a program in C, Python, etc.
 
Old 12-25-2008, 08:31 AM   #4
a_minor
LQ Newbie
 
Registered: Dec 2008
Location: Tehran , IRN
Distribution: Fedora core 16
Posts: 23

Rep: Reputation: 0
Quote:
Originally Posted by pixellany View Post
What is a "system call" in this context? The way I have seen the term used is when calling shell commands from a program in C, Python, etc.
until I know about system call context , system calls are using for calling functions that kernel provides, from our user space programs(c,python,etc programs), that refer the control of execution from user-space program to kernel because executing desire function such as changing directory belongs to kernel territory,

and most of system calls can be called from shell commands, exactly as chdir,

I hope this helps
 
  


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
hey i want to know which command in linux uses the system call kill() vineetnair Linux - Newbie 1 10-02-2007 05:26 AM
i wud like to know which command in linux uses the system call kill() vineetnair Linux - General 1 10-02-2007 04:31 AM
list file system linux supports "please give the command or system call" varun_shrivastava Linux - General 4 01-09-2007 07:28 AM
Is Mount a system call or shell command? comeon Linux - Software 8 02-20-2005 11:55 PM
how to call a system command with java applet? nickhx Programming 4 08-11-2004 12:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 09:43 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration