Documente Academic
Documente Profesional
Documente Cultură
LINUX Commands
by
Saurabh Sharma
Suggestion Accepted on
(saurabh.sharma44@gmail.com)
saurabh.sharma44@gm
ail.com
The PATH: Locating Commands
• UNIX obtains the list of directories that has
to be searched from of an environment
variable – PATH.
• If you evaluate the value of PATH, you’ll
find a directory list separated by colons:
$ echo $PATH
/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:.
http://www.dynamicminds.co.in
Combining Options
• Options that begin with a – sign can
normally be combined with only one – sign.
• For instance, this command has three
options:
ls –l –a -t
• The -l option provides most details of a
file’s attributes. The –t option sorts files
according to the time of modification. The
-a option lists the hidden files.
http://www.dynamicminds.co.in
Combining Options
• You can combine these options in this way:
ls –lat
ls -atl
• This facility reduces your typing load. The
shell parses (break up) the option
combination into separate options.
• Some commands won’t let you combine
options in the way you did just now.
tar –cv –f /dev/fd0 –b 18
http://www.dynamicminds.co.in
Combining Options
• There are four options here, but two of them
(-f and –b) has their own arguments. These
arguments are called option parameters.
• We combined the –c and –v options here.
We can combine the –f and –b options,
provided that their own parameters are
placed in the same sequence.
tar –cvfb /dev/fd0 18
• The following one won’t work:
tar –cvfb 18 /dev/fd0
http://www.dynamicminds.co.in
Thank You
http://www.dynamicminds.co.in