Shell Scripting Notes

Basic tidbits

cd /   #back to the root directory
cd ~   #back to the home directory
cd -   #back to the previous directory

pwd    # printing current working directory

Short cuts inside the terminal : ctrl+shift+x / ctrl+shift+v

'du' - Finding the size of a directory
     - du -h
     
'df' - finding the disk free space / disk usage

export PS1='> '
export PS1='\u@\h: '  #both can hide the prolong working direct


Advanced usage:

dd if=filename of=filename1 conv=ucase

Linux view MAC address in a system level.

你可能感兴趣的:(shell)