1. awk/nawk [options] file
    scan for patterns in a file and process the results
  2. cat [options] file
    concatenate (list) a file
  3. cd [directory]
    change directory
  4. chgrp [options] group file
    change the group of the file
  5. chmod [options] file
    change file or directory access permissions
  6. chown [options] owner file
    change the ownership of a file; can only be done by the superuser
  7. cut (options) [file(s)]
    cut specified field(s)/character(s) from lines in file(s)
  8. date [options]
    report the current date and time
  9. dd [if=infile] [of=outfile] [operand=value]
    copy a file, converting between ASCII and EBCDIC or swapping byte order, as specified
  10. diff [options] file1 file2
    compare the two files and display the differences (text files only)
  11. df [options] [resource]
    report the summary of disk blocks and inodes free and in use
  12. du [options] [directory or file]
    report amount of disk space in use
  13. echo [text string]
    echo the text string to stdout
  14. ed or ex [options] file
    Unix line editors
  15. emacs [options] file
    full-screen editor
  16. expr arguments
    evaluate the arguments. Used to do arithmetic, etc. in the shell.
  17. file [options] file
    classify the file type
  18. find directory [options] [actions]
    find files matching a type or pattern
  19. finger [options] user[@hostname]
    report information about users on local and remote machines
  20. ftp [options] host
    transfer file(s) using file transfer protocol
  21. gzip [options] file, gunzip [options] file, zcat [options] file
    compress or uncompress a file. Compressed files are stored with a .gz ending
  22. head [-number] file
    display the first 10 (or number of) lines of a file
  23. hostname
    display or set (super-user only) the name of the current machine
  24. 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.
  25. ln [options] source_file target
    link the source_file to the target
  26. lpq [options], lpstat [options]
    show the status of print jobs
  27. lpr [options] file, lp [options] file
    print to defined printer
  28. lprm [options], cancel [options]
    remove a print job from the print queue
  29. ls [options] [directory or file]
    list directory contents or file permissions
  30. 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.
  31. man [options] command
    show the manual (man) page for a command
  32. mkdir [options] directory
    make a directory
  33. more [options] file, less [options] file, pg [options] file
    page through a text file
  34. mv [options] file1 file2
    move file1 into file2
  35. od [options] file
    octal dump a binary file, in octal, ASCII, hex, decimal, or character mode.
  36. passwd [options]
    set or change your password
  37. paste [options] file
    paste field(s) onto the lines in file
  38. pr [options] file
    filter the file and print it on the terminal
  39. ps [options]
    show status of active processes
  40. pwd
    print working (current) directory
  41. rcp [options] hostname
    remotely copy files from this machine to another machine
  42. rlogin [options] hostname
    login remotely to another machine
  43. rm [options] file
    remove (delete) a file or directory (-r recursively deletes the directory and its contents) (-i prompts before removing files)
  44. rmdir [options] directory
    remove a directory
  45. rsh [options] hostname
    remote shell to run on another machine
  46. script file
    saves everything that appears on the screen to file until exit is executed
  47. sed [options] file
    stream editor for editing files from a script or from the command line
  48. sort [options] file
    sort the lines of the file according to the options chosen
  49. source file
    read commands from the file and execute them in the current shell. source: C shell, .: Bourne shell.
  50. strings [options] file
    report any sequence of 4 or more printable characters ending in or . Usually used to search binary files for ASCII strings.
  51. stty [options]
    set or display terminal control options
  52. tail [options] file
    display the last few lines (or parts) of a file
  53. 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.
  54. tee [options] file
    copy stdout to one or more files
  55. telnet [host [port]]
    communicate with another host using telnet protocol
  56. touch [options] [date] file
    create an empty file, or update the access time of an existing file
  57. tr [options] string1 string2
    translate the characters in string1 from stdin into those in string2 in stdout
  58. uncompress file.Z
    uncompress file.Z and save it as a file
  59. uniq [options] file
    remove repeated lines in a file
  60. uudecode [file]
    decode a uuencoded file, recreating the original file
  61. uuencode [file] new_name
    encode binary file to 7-bit ASCII, useful when sending via email, to be decoded as new_name at destination
  62. vi [options] file
    visual, full-screen editor
  63. wc [options] [file(s)]
    display word (or character or line) count for file(s)
  64. whereis [options] command
    report the binary, source, and man page locations for the command named
  65. which command
    reports the path to the command or the shell alias in use
  66. who or w
    report who is logged in and what processes are running
  67. zcat file.Z
    concatenate (list) uncompressed file to screen, leaving file compressed on disk
  68. cp [options] file1 file2
    copy file1 into file2; file2 shouldn't already exist. This command creates or overwrites file2.
  69. chsh (passwd -e/-s) username login_shell
    change the user's login shell (often only by the superuser)
Card Set
linux commands