Content added Content deleted
imported>mutante mNo edit summary |
imported>mutante mNo edit summary |
||
(9 intermediate revisions by 2 users not shown) | |||
Line 26:
<table border="1" cellspacing="1" cellpadding="5" bgcolor="#dddddd" width="820">
<tr><TH>Command/Syntax
<TD>[[awk/nawk]] [options] <I>file</I><TD>scan for patterns in a file and process the results<TR>
<TD>[[cat]] [options] <I>file</I><TD>concatenate (list) a file<TR>
<TD>[[cd]] [directory]<TD>change directory<TR>
<TD>[[chgrp]] [options] <I>group file</I><TD>change the group of the file<TR>
<TD>[[chmod]] [options] <I>file</I><TD>change file or directory access permissions<TR>
<TD>[[chown]] [options] <I>owner file</I><TD>change the ownership of a file; can only be done by the superuser<TR>
<TD>[[chsh]] ([[passwd -e/-s]]) <I>username login_shell</I><TD>change the user's login shell (often only by the superuser)<TR>
<TD>[[cmp]] [options] <I>file1 file2</I><TD>compare two files and list where differences occur (text or binary files)<TR>
<TD>[[compress]] [options] <I>file</I><TD>compress file and save it as <I>file.Z</I><TR>
<TD>[[cp]] [options] <I>file1 file2</I><TD>copy <I>file1</I> into <I>file2</I>; <I>file2</I> shouldn't already exist. This command creates or overwrites <I>file2</I>.<TR>
<TD>[[cut]] (options) [<I>file</I>(s)]<TD>cut specified field(s)/character(s) from lines in file(s)<TR>
<TD>[[date]] [options]<TD>report the current date and time<TR>
<TD>[[dd]] [if=infile] [of=outfile] [operand=value]<TD>copy a file, converting between ASCII and EBCDIC or swapping byte order, as specified<TR>
<TD>[[diff]] [options] <I>file1 file2</I><TD>compare the two files and display the differences (text files only)<TR>
<TD>[[df]] [options] [resource]<TD>report the summary of disk blocks and inodes free and in use<TR>
<TD>[[du]] [options] [<I>directory</I> or <I>file</I>]<TD>report amount of disk space in use<TR>
<TD>[[echo]] [text string]<TD>echo the text string to stdout<TR>
<TD>[[ed]] or [[ex]] [options] <I>file</I><TD>Unix line editors<TR>
<TD>[[emacs]] [options] <I>file</I><TD>full-screen editor<TR>
<TD>[[expr]] <I>arguments</I><TD>evaluate the arguments. Used to do arithmetic, etc. in the shell.<TR>
<TD>[[file]] [options] <I>file</I><TD>classify the file type<TR>
<TD>[[find directory]] [options] [actions]<TD>find files matching a type or pattern<TR>
<TD>[[finger]] [options] <I>user[@hostname]</I><TD>report information about users on local and remote machines<TR>
<TD>[[ftp]] [options] <I>host</I><TD>transfer file(s) using file transfer protocol<TR>
<TD>[[grep]] [options] 'search string' <I>argument</I><P>[[egrep ]][options] 'search string' <I>argument</I><P>[[fgrep ]][options] 'search string' <I>argument</I><TD>search the argument (in this case probably a file) for all occurrences of the search string, and list them. <TR>
<TD>[[gzip]] [options] <I>file</I><P>[[gunzip ]][options] <I>file</I><P>[[zcat ]][options] <I>file</I><TD>compress or uncompress a file. Compressed files are stored with a .[[gz]] ending<TR>
<TD>[[head]] [-number] <I>file</I><TD>display the first 10 (or number of) lines of a file<TR>
<TD>[[hostname]]<TD>display or set (super-user only) the name of the current machine<TR>
<TD>[[kill]] [options] [-SIGNAL] [pid#] [%job]<TD>send a signal to the process with the process id number (pid#) or job control number (%n). The default signal is to kill the process.<TR>
<TD>[[ln]] [options] <I>source_file target</I><TD>link the <I>source_file</I> to the <I>target</I><TR>
<TD>[[lpq]] [options]<P>[[lpstat<I> </I>]][options]<TD>show the status of print jobs<TR>
<TD>[[lpr]] [options] <I>file</I><P>[[lp<I> </I>]][options] <I>file</I><TD>print to defined printer<TR>
<TD>[[lprm]] [options]<P>[[cancel ]][options]<TD>remove a print job from the print queue<TR>
<TD>[[ls]] [options] [<I>directory</I> or <I>file</I>]<TD>list <I>directory</I> contents or <I>file</I> permissions<TR>
<TD>[[mail]] [options] [user]<P>[[mailx ]][options] [user]<P>[[Mail ]][options] [user]<TD>simple email utility available on Unix systems. Type a period as the first character on a new line to send message out, question mark for help.<TR>
<TD>[[man]] [options] <I>command</I><TD>show the manual ([[man]]) page for a command<TR>
<TD>[[mkdir]] [options] <I>directory</I><TD>make a <I>directory</I><TR>
<TD>[[more]] [options] <I>file</I><P>[[less ]][options] <I>file</I><P>[[pg ]][options] <I>file</I><TD>page through a text file<TR>
<TD>[[mv]] [options] <I>file1 file2</I><TD>move <I>file1</I> into <I>file2</I><TR>
<TD>[[od]] [options] <I>file</I><TD>octal dump a binary file, in octal, ASCII, hex, decimal, or character mode.<TR>
<TD>[[passwd]] [options]<TD>set or change your password<TR>
<TD>[[paste]] [options] <I>file</I><TD>paste field(s) onto the lines in <I>file</I><TR>
<TD>[[pr]] [options] <I>file</I><TD>filter the file and print it on the terminal<TR>
<TD>[[ps]] [options]<TD>show status of active processes<TR>
<TD>[[pwd]]<TD>print working (current) directory<TR>
<TD>[[rcp]] [options] <I>hostname</I><TD>remotely copy files from this machine to another machine<TR>
<TD>[[rlogin]] [options] <I>hostname</I><TD>login remotely to another machine<TR>
<TD>[[rm]] [options] <I>file</I><TD>remove (delete) a file or directory ([[-r ]]recursively deletes the directory and its contents) ([[-i]] prompts before removing
file<TR>
<TD>[[rmdir]] [options] <I>directory</I><TD>remove a <I>directory</I><TR>
<TD>[[rsh]] [options] <I>hostname</I><TD>remote shell to run on another machine<TR>
<TD>[[script]] <I>file</I><TD>saves everything that appears on the screen to file until [[exit]] is executed<TR>
<TD>[[sed]] [options] <I>file</I><TD>stream editor for editing files from a script or from the command line<TR>
<TD>[[sort]] [options] <I>file</I><TD>sort the lines of the <I>file</I> according to the options chosen<TR>
<TD>[[source]] <I>file</I><P>[[.]] <I>file</I><TD>read commands from the <I>file</I> and execute them in the current shell. [[source]]: C shell, [[.]]: Bourne shell.<TR>
<TD>[[strings]] [options] <I>file</I><TD>report any sequence of 4 or more printable characters ending in <NL> or <NULL>. Usually used to search binary files for ASCII strings.<TR>
<TD>[[stty]] [options] <TD>set or display terminal control options<TR>
<TD>[[tail]] [options] <I>file</I><TD>display the last few lines (or parts) of a file<TR>
<TD>[[tar]] key[options] [<I>file</I>(s)]<TD>tape archiver--refer to man pages for details on creating, listing, and retrieving from archive files. Tar files can be stored on tape or disk.<TR>
<TD>[[tee]] [options] <I>file</I><TD>copy stdout to one or more files<TR>
<TD>[[telnet]] [host [port]]<TD>communicate with another host using telnet protocol<TR>
<TD>[[touch]] [options] [date] <I>file</I><TD>create an empty file, or update the access time of an existing file<TR>
<TD>[[tr]] [options] <I>string1 string2</I><TD>translate the characters in string1 from stdin into those in string2 in stdout<TR>
<TD>[[uncompress]] <I>file.Z</I><TD>uncompress <I>file.Z</I> and save it as a file<TR>
<TD>[[uniq]] [options] <I>file</I><TD>remove repeated lines in a file<TR>
<TD>[[uudecode]] [<I>file</I>]<TD>decode a uuencoded file, recreating the original file <TR>
<TD>[[uuencode]] [<I>file</I>] <I>new_name</I><TD>encode binary file to 7-bit ASCII, useful when sending via email, to be decoded as new_name at destination<TR>
<TD>[[vi]] [options] <I>file</I><TD>visual, full-screen editor<TR>
<TD>[[wc]] [options] [<I>file</I>(s)]<TD>display word (or character or line) count for <I>file</I>(s)<TR>
<TD>[[whereis]] [options] <I>command</I><TD>report the binary, source, and man page locations for the command named<TR>
<TD>[[which]] <I>command</I><TD>reports the path to the command or the shell alias in use <TR>
<TD>[[who]] or [[w]]<TD>report who is logged in and what processes are running<TR>
<TD>[[zcat]] <I>file.Z</I><TD>concatenate (list) uncompressed file to screen, leaving file compressed on disk</td></tr></TABLE>
--> see: [[:Category:Manpages]]
[[Category:Computer]]
[[Category:Unix]]
[[Category:Linux]]
[[Category:Manpages]]
|
Latest revision as of 20:33, 13 August 2006
ManPages[edit]
Command/Syntax | What it will do |
---|---|
awk/nawk [options] file | scan for patterns in a file and process the results |
cat [options] file | concatenate (list) a file |
cd [directory] | change directory |
chgrp [options] group file | change the group of the file |
chmod [options] file | change file or directory access permissions |
chown [options] owner file | change the ownership of a file; can only be done by the superuser |
chsh (passwd -e/-s) username login_shell | change the user's login shell (often only by the superuser) |
cmp [options] file1 file2 | compare two files and list where differences occur (text or binary files) |
compress [options] file | compress file and save it as file.Z |
cp [options] file1 file2 | copy file1 into file2; file2 shouldn't already exist. This command creates or overwrites file2. |
cut (options) [file(s)] | cut specified field(s)/character(s) from lines in file(s) |
date [options] | report the current date and time |
dd [if=infile] [of=outfile] [operand=value] | copy a file, converting between ASCII and EBCDIC or swapping byte order, as specified |
diff [options] file1 file2 | compare the two files and display the differences (text files only) |
df [options] [resource] | report the summary of disk blocks and inodes free and in use |
du [options] [directory or file] | report amount of disk space in use |
echo [text string] | echo the text string to stdout |
ed or ex [options] file | Unix line editors |
emacs [options] file | full-screen editor |
expr arguments | evaluate the arguments. Used to do arithmetic, etc. in the shell. |
file [options] file | classify the file type |
find directory [options] [actions] | find files matching a type or pattern |
finger [options] user[@hostname] | report information about users on local and remote machines |
ftp [options] host | transfer file(s) using file transfer protocol |
grep [options] 'search string' argument egrep [options] 'search string' argument fgrep [options] 'search string' argument | search the argument (in this case probably a file) for all occurrences of the search string, and list them. |
gzip [options] file gunzip [options] file zcat [options] file | compress or uncompress a file. Compressed files are stored with a .gz ending |
head [-number] file | display the first 10 (or number of) lines of a file |
hostname | display or set (super-user only) the name of the current machine |
kill [options] [-SIGNAL] [pid#] [%job] | send a signal to the process with the process id number (pid#) or job control number (%n). The default signal is to kill the process. |
ln [options] source_file target | link the source_file to the target |
lpq [options] [[lpstat ]][options] | show the status of print jobs |
lpr [options] file [[lp ]][options] file | print to defined printer |
lprm [options] cancel [options] | remove a print job from the print queue |
ls [options] [directory or file] | list directory contents or file permissions |
mail [options] [user] mailx [options] [user] Mail [options] [user] | simple email utility available on Unix systems. Type a period as the first character on a new line to send message out, question mark for help. |
man [options] command | show the manual (man) page for a command |
mkdir [options] directory | make a directory |
more [options] file less [options] file pg [options] file | page through a text file |
mv [options] file1 file2 | move file1 into file2 |
od [options] file | octal dump a binary file, in octal, ASCII, hex, decimal, or character mode. |
passwd [options] | set or change your password |
paste [options] file | paste field(s) onto the lines in file |
pr [options] file | filter the file and print it on the terminal |
ps [options] | show status of active processes |
pwd | print working (current) directory |
rcp [options] hostname | remotely copy files from this machine to another machine |
rlogin [options] hostname | login remotely to another machine |
rm [options] file | remove (delete) a file or directory (-r recursively deletes the directory and its contents) (-i prompts before removing file |
rmdir [options] directory | remove a directory |
rsh [options] hostname | remote shell to run on another machine |
script file | saves everything that appears on the screen to file until exit is executed |
sed [options] file | stream editor for editing files from a script or from the command line |
sort [options] file | sort the lines of the file according to the options chosen |
source file [[.]] file | read commands from the file and execute them in the current shell. source: C shell, [[.]]: Bourne shell. |
strings [options] file | report any sequence of 4 or more printable characters ending in <NL> or <NULL>. Usually used to search binary files for ASCII strings. |
stty [options] | set or display terminal control options |
tail [options] file | display the last few lines (or parts) of a file |
tar key[options] [file(s)] | tape archiver--refer to man pages for details on creating, listing, and retrieving from archive files. Tar files can be stored on tape or disk. |
tee [options] file | copy stdout to one or more files |
telnet [host [port]] | communicate with another host using telnet protocol |
touch [options] [date] file | create an empty file, or update the access time of an existing file |
tr [options] string1 string2 | translate the characters in string1 from stdin into those in string2 in stdout |
uncompress file.Z | uncompress file.Z and save it as a file |
uniq [options] file | remove repeated lines in a file |
uudecode [file] | decode a uuencoded file, recreating the original file |
uuencode [file] new_name | encode binary file to 7-bit ASCII, useful when sending via email, to be decoded as new_name at destination |
vi [options] file | visual, full-screen editor |
wc [options] [file(s)] | display word (or character or line) count for file(s) |
whereis [options] command | report the binary, source, and man page locations for the command named |
which command | reports the path to the command or the shell alias in use |
who or w | report who is logged in and what processes are running |
zcat file.Z | concatenate (list) uncompressed file to screen, leaving file compressed on disk |
--> see: Category:Manpages