Basic Unix Commads

Card Set Information

Basic Unix Commads
2014-02-25 18:00:09
Commands usr

This is a set of basic Unix command line commands as recommended by Learning Code the Hard Way
Show Answers:

  1. pwd
    print working diretory
  2. hostname
    my computer's network name
  3. mkdir
    make directory
  4. cd
    change directory
  5. ls
    list directory
  6. rmdir
    remove directory
  7. pushpd
    push directory
  8. popd
    pop directory
  9. cp
    copy a file or a directory
  10. mv
    move a file or directory
  11. less
    page through a file
  12. cat
    print the whole file
  13. xargs
    execute arguments
  14. find
    find files
  15. grep
    find things inside files
  16. man
    read a manual page
  17. apropos
    find what manual page is appropriate
  18. env
    look at your environment
  19. echo
    print the arguments
  20. export
    export or set a new environment variable
  21. exit
    exit the shell
  22. sudo
    DANGER! become the super user "root" DANGER!
  23. chmod
    change permission modifiers
  24. chown
    change ownership
  25. $|$
    Pipes output of the command ($) on the left to to be the input to that on right.
  26. $<$
    < will take and send the input from the file on the right to the program on the left.
  27. $>$
    > takes the output of the command on the left and then writes it to the file on the right
  28. $>>$
    >> takes the output of the command on the left and appends it to the file on the right