Wednesday, January 3, 2018

Linux command that you don't know first


1. Linux command to print directory structure in the form of a tree

ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/   /' -e 's/-/|/'



2. Change folder ownership

chmod -R 777 directory_name



3. Make it runnable

sudo chmod +x filename.bin


4. Renew IP address
sudo dhclient -r

No comments:

Post a Comment

free online comma separating tool

https://delim.co/#