UNIX Shell Commands

Whether your UNIX uses a Bourne-style shell or the C shell, you can do some simple typing to execute a range of commands. The following list shows a list of commands and what to type to execute them:











































































To Do ThisType ThisTo Do ThisType This
Cancel a commandCtrl+U, Ctrl+X, or @List filenames with sizes and datesls -l
Change the working directory to /usrcd/ usrList hidden files tools -al
Change the working directory back to your home directorycdList files and pause when screen is fullls | more
Copy a filecp oldfile newfileLook at a text filecat letter
Copy a file to another directorycp oldfile dirnameLook at a long text filemore letter
Copy a bunch of files to another directorycp budget* dirnameMake a new link (name) for a fileln oldname newname
Copy all the files in this directory and in all its
subdirectories
cp -r * newdirMake new links (names) for files in a directoryln dirname/* newdir
Erase a filerm junkfileCombine two filescat file1 file2 > newfile
Rename a filemv oldname newnameCompare two filesdiff file1 file2
Move a file to another directorymv oldfile dirnameLook at the manual page for the ls commandman ls
List filenameslsChange your passwordpasswd








dummies

Source:http://www.dummies.com/how-to/content/unix-shell-commands.html

No comments:

Post a Comment