Skip to content

Instantly share code, notes, and snippets.

@Iftakharpy
Last active November 25, 2020 20:56
Show Gist options
  • Save Iftakharpy/5e3796351f3c145115e2b57e83ccf385 to your computer and use it in GitHub Desktop.
Save Iftakharpy/5e3796351f3c145115e2b57e83ccf385 to your computer and use it in GitHub Desktop.
Just a list of Linux command line tools

Names of some Linux Commands

  1. whatis
  2. help
  3. man
  4. apropos
  5. whoami
  6. which
  7. date
  8. history
  9. find
  10. pwd
  11. cd
  12. ls
  13. tree
  14. touch
  15. file
  16. cat
  17. less
  18. more
  19. cp
  20. mv
  21. rm
  22. mkdir
  23. alias
  24. unalias
  25. exit
  26. clear
  27. echo
  28. ">" [stdout redirection to file] (replaces the file's content)
  29. ">>" [stdout redirection to file] (appends to the file's content)
  30. "<" [stdin redirection to programme] (sends the file's content as stdin)
  31. "2>" [stderr redirection to file] (replaces the file's content with the stderr)
  32. "&>" [stderr & stdout redirection to file] (redirects both stderr and stdout)
  33. "|" (e.g. pipe) [redirects stdout of a prgramm to another programm as stdin]
  34. tee
  35. env
  36. "echo $VAR_NAME" [print VAR_NAME's value]
  37. cut
  38. paste
  39. head
  40. tail
  41. expand
  42. unexpand
  43. join
  44. split
  45. sort
  46. tr
  47. uniq
  48. wc
  49. nl
  50. grep
  51. vi
  52. vim
  53. emacs

   

File descriptors

Syntax: ls non-exixting-dir/ [0|1|2]> out.txt

Useful for redirection of I/O streams

I/O Stream Name Number
stdin 0
stdout 1
stderr 2

   

whatis

Display one-line manual page descriptions

help

Display information about builtin commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment