Advertisement
Guest User

Untitled

a guest
Jul 25th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. #GREP
  2. 1. grep -E '(\w)\1' /etc/passwd
  3. 2. grep -E '([a-z]\1' /etc/passwd
  4.  
  5. #CHMOD
  6. 1. # don't see last part, 2 might be wrong because of this
  7. 2. chmod u-r,o+w homework
  8.  
  9. #FIND
  10. 1. find ~ -type f
  11.  
  12. #KILL
  13. kill terminates a process. For example if we had vim process running with process id (pid) 2550, then we can kill the process by running: kill 2550
  14.  
  15. #IO
  16. 1. find /usr/bin/ 2>find.err >$HOME/find.out
  17. 2. ps -ef > /tmp/ps.out.$$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement