Advertisement
evilqubit

linux

Mar 25th, 2014
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. linux :
  2. /etc/apt
  3. df -h ==> check the mounted drives .
  4.  
  5. apt-cache search <search_term> ==> search for apt packages .
  6.  
  7. apt-get build-dep <package_name> ==> install dependencies for a package .
  8.  
  9. sudo cat /etc/passwd
  10.  
  11. sudo cat /etc/shadow
  12.  
  13. sources.list.d when u add a source to apt u see it here
  14.  
  15. /etc/mongodb.conf where the mongod configuration file
  16.  
  17. adduser name
  18. grep node /etc/passwd
  19. cut -f 1 -d ':' /etc/passwd | grep node
  20.  
  21.  
  22.  
  23. stat get file state
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement