Back up a file with same name + prefix
13 ตุลาคม 2563
$ cp todo.txt !#:1.bak
cp todo.txt todo.txt.bak
NOTE: Actually you can use !#:1 in every command 'cause that's last argument passed to a command.
UPDATED: Now it works with zsh
$ cp todo.txt !#:1.bak
cp todo.txt todo.txt.bak
NOTE: Actually you can use !#:1 in every command 'cause that's last argument passed to a command.
UPDATED: Now it works with zsh
Simply put a space before the command and it won't be saved to ~/.bash\_history. E.g. qrencode -o out.png "Some secret text"
To upgrade postgres you can run
Open term (or equivalent) and paste the following: