Advertisement
icorrelate

SSH Commands

Apr 21st, 2017
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.75 KB | None | 0 0
  1. cal --> calendar
  2. pwd --> print working directory
  3. ls -alh --> list files and folders
  4.  
  5.  
  6.  
  7. chmod [Permission] filename.ext
  8. Quick permissions guide:
  9.  
  10. 7 = Read + Write + Execute
  11. 6 = Read + Write
  12. 5 = Read + Execute
  13. 4 = Read
  14. 3 = Write + Execute
  15. 2 = Write
  16. 1 = Execute
  17. 0 = All access denied
  18.  
  19. First number is for the owner, second for the group, and third for everyone.
  20.  
  21.  
  22.  
  23. vi filename.txt --> Hit Enter --> Hit "I" to begin typing -> ESC --> Shift + "z + z" to save
  24. cat filename.txt --> get all contents to screen
  25. ls --> show files
  26. mkdir - make new directory
  27. rm filename.txt ---> type yes
  28. df -h --> Total server disk use
  29. mv sourcefile.txt destination/... --> move file
  30. logout --> logout to server
  31.  
  32.  
  33. Type help for the list of commands
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement