This site will look much better in a browser that supports web standards, but it is accessible to any browser or Internet device.

UNIX commands »

Contents


Basic Unix Commands

Control characters

  • [ctrl C] - kill job

  • [ctrl D] - end of file

  • [ctrl Q] - continue output

  • [ctrl R] - redraw current command line

  • [ctrl S] - stop output

  • [ctrl U] - erase to beginning of line

  • [ctrl Z] - suspend current job

Commands

  • cat file1 - print the contents of file1 onto the terminal screen.

  • cd dir1 - change directory to dir1. cd with no argument changes back to the user's home directory.

  • chmod - change protection of files. chmod o-r file1 makes file1 unreadable to people outside of the owner's group. See man chmod for more details.

  • cp file1 file2 - make a copy of file1 and call it file2.

  • compress huge_file - conserves disk space. uncompress huge_file restores original file condition.

  • date - print the current date and time.

  • find - find files that match certain characteristics. For example, find . -name test.tex -print searches down through all your directories to find files named test.tex and will print their path names when it finds them. see man find for more details.

  • finger user - look up information about the named user

  • grep word file1 - look through file1 for word.

  • grep -l word * - look through all the files in the current directory and print the names of those files which contain word.

  • gsu groupname - change to group account.

  • head file1 - print the first 10 lines of file1.

  • jobs - show any background jobs.

  • kill %1 - kill background job number 1.

  • leave 1030 - reminds you (at 10:25)