Advertisement
Mayur_Pipaliya

*nix basics!

Oct 17th, 2013
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. *nix basics!
  2.  
  3. Do you know any person`s name associated to *nix.
  4. # Linus Torvalds (Linus)
  5. # Richard Matthew Stallman (RMS)
  6.  
  7. How do you check file type
  8. # file <filename.extension>
  9.  
  10. How do one create hidden file/folder in *nix
  11. # Basically start file/folder with "." (dot) !
  12. # mkdir .HiddenDirectory
  13. # echo > .HiddenFile
  14.  
  15. How do one List hidden files (dot files) ('a' stands for all files)
  16. # ls -a
  17.  
  18. Give me names of few *nix distributions/OS
  19. # CentOS/RedHat/Fedora
  20. # Debian/Ubuntu/LinuxMint/Google Chrome OS
  21. # Android / FreeBSD / OpenBSD / iOS
  22.  
  23.  
  24. Install Package in Ubuntu/Debian/Mint/ChromeOS
  25. # apt-get install <package>
  26.  
  27. Install package in CentOS/Fedora/RedHat
  28. # yum install <package>
  29.  
  30.  
  31. To get documentation about any installed command.
  32. # man <command>
  33.  
  34. To check how much time taken by any command executed.
  35. # time ls
  36. or
  37. # time sleep 1
  38.  
  39. To change password of current user
  40. # passwd
  41.  
  42. What are common *nix file editors?
  43. # vi
  44. # vim
  45. # nano
  46.  
  47. Tell me few *nix commands! ;)
  48. ls cat echo man whereis whoami which who last less df cp mv rm chmod chown mkdir rmdir zip kill pkill pwd passwd sleep ln grep vi sed find touch wget
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement