Advertisement
LastStar007

Handy Linux tips

May 26th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. `dirname`, nested commands, and following links:
  2. cd $(dirname $(readlink -f $(which java)))/../..
  3. There's also `hostname` to extract the filename alone.
  4.  
  5. ~/.bash_profile will execute on login
  6. ~/.bashrc will execute every time bash is started
  7.  
  8. To remove ~/.sudo_as_admin_successful:
  9. https://askubuntu.com/questions/22607/remove-note-about-sudo-that-appears-when-opening-the-terminal
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement