(without saving changes)
if in insert or append mode press Esc.
else type ":q!" and press Enter
#to modify a file:
vi FILENAME.sh
#press colon ':' + ENTER (the position of the cursor will be to the end of file)
#to exit & SAVE:
wq
#to exit WITHOUT SAVING:
q!
Code Example |
---|
Shell :: copy command |
Shell :: example bash script |
Shell :: git local to remote |
Shell :: winget github |
Shell :: giphy slack |
Shell :: git modify last commit but leave the commit message |
Shell :: failed: Invalid argument |
Shell :: /zsh-autosuggestions/zsh-autosuggestions.zsh^M |
Shell :: cors github |
Shell :: bash escape all special characters |
Shell :: install kubernetes ubuntu 20.04 |
Shell :: and or bash |
Shell :: git subtree |
Shell :: authentication failed github |
Shell :: checkout git specific commit |
Shell :: git repo |
Shell :: mac terminal screenshot |
Shell :: printf linux |
Shell :: datadog |
Shell :: pyang installtion ubuntu |
Shell :: how force detached ENI |
Shell :: private repo git history api |
Shell :: install Promtail Agent |
Shell :: cope file linux |
Shell :: linux traverse all subdirectories and do action |
Shell :: airodump output to file |
Shell :: app-crashed |
Shell :: RequestsDependencyWarning chardet |
Shell :: fetch only one branch |
Shell :: service version nmap sqitch |