Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

vim sudo trick

add into vimrc or similar:
" Allow saving of files as sudo when I forgot to start vim using sudo.
cmap w!! w !sudo tee > /dev/null %
Comment

PREVIOUS NEXT
Code Example
Shell :: batch set from file 
Shell :: yacc install in kali linux 
Shell :: convert mp4 to hap 
Shell :: what is vi in linux 
Shell :: read input from multiple lines in BASH 
Shell :: vim replace multiple spaces with one 
Shell :: create repo with name 
Shell :: add husky folder 
Shell :: git request-pull 
Shell :: ffmpeg green screen 
Shell :: show output after a keyword in shell script in a file 
Shell :: delete remote git branches matching pattern 
Shell :: how to take a screenshot linux terminal 
Shell :: windows powershell mkdir multiple directories 
Shell :: shallow clone specific branch 
Shell :: delete line in sed 
Shell :: vmware not working after ubuntu upgrade 
Shell :: Remove duplicated files from git 
Shell :: how to check ssh agent is running in git bash 
Shell :: chakraUI 
Shell :: delete ec2 from terraform 
Shell :: bash array 
Shell :: gitkraken stuck on opening repo 
Shell :: View Commit History With Changes in git command 
Shell :: how to delete remote file locally on git 
Shell :: command to find out my git head version 
Shell :: git push specific branch 
Shell :: install nodejs via homebrew 
Shell :: docker stop swarm 
Shell :: EDIT WSL2 terminal user% 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =