How To Execute a Script at Reboot/Shutdown
- Write your script in /etc/rc0.d
- Make the script executable by using sudo chmod +x myscript
- Scripts in this directory will be executed in alphabetical order. The name of your script must begin with K99 to run at the right time.
- It’s the same for shutdown, but you must put your sh file in /etc/rc6.d folder
How to zip or unzip
zip -r my_arch.zip my_folder
unzip my_arch.zip
Short keys
Jump to Desktop
Ctrl + Windows + D
Open new terminal
Ctrl + Alt + T
Copy, cut, paste command line
Ctrl + Shift + C
Ctrl + Shift + X
Ctrl + Shift + V
How to scroll up/down terminal screen
Shift + Ctrl + Arrow key
Shift + Page Up/ Down
Vim
Start editting
Press "i"
Delete a line
dd
Undo, redo
:undo
:redo
Copy, cut, paste
- “Esc” key, then “v” to enter Visual mode
- Select text
- To copy, “y“
- To cut, “d“
- To paste, “p“
Suspend Vim
Ctrl-Z
Resume Vim
fg
Open new file while editing a file
:split file2
// Switch file
Ctrl-W
Leave a Reply