Linux Command
alias
Method 1: put your alias in .alias_pofile
Recommend use this file, will not destory .bashrc
file.
1 | cd ~ |
Method 2: edit .bashrc
This method need to reboot to take effect
change directory
change folder or directory
cd
: change directory to home ~
directorycd folder
: change to specific directory
change upper directory
cd ..
: change upper directorycd ../..
: change directory to 2 upper directorycd ../folder
: move upper directory and go to new direcotrycat ../folder/filename
: read upper directory filename
find
- find file type
.sh
command:
find . -type f -name "*.sh"
dump or write file
EOF read multipy line into file
Example 1
1 | cat >>/etc/apt/sources.list<<EOF |
Example 2
1 | cat << EOF > /etc/samba/smb.conf |