Skip to content

Latest commit

 

History

History
36 lines (31 loc) · 838 Bytes

bash_tricks.md

File metadata and controls

36 lines (31 loc) · 838 Bytes
  1. check folder size
du -h foldername #more descriptive
du -hcs foldername #brief description
  1. create softlink multiple files
pathDir="/path/to/directory/"
find $pathDir -name "*.format" -exec ln {} \;
# {} is whatever you find, and exec will execute a command for whatever you found. 
# \ is the full path to what was found 
  1. go back to the previously visited directory
cd "$OLDPWD"

4.To see the current progress in the server cpu

htop 
  1. To see hidden file
less .git/config

6.Docker using as a nonroot user If you would like to use Docker as a non-root user, you should now consider adding your user to the "docker" group with something like:

sudo usermod -aG docker bohanni

Remember that you will have to log out and back in for this to take effect!