In Windows, I'm used to being able to clear a line simply by hitting Esc
, but it's not quite as easy from Bash.
- You can use
Ctrl+U
to clear up to the beginning. - You can use
Ctrl+W
to delete just a word. - You can also use
Ctrl+C …
In Windows, I'm used to being able to clear a line simply by hitting Esc
, but it's not quite as easy from Bash.
Ctrl+U
to clear up to the beginning.Ctrl+W
to delete just a word.Ctrl+C …
When moving an SSH key to my cloud dev server, I ran in to this error:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0644 for '~/.ssh/id_rsa' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key …
I always hate when filename ordering gets screwed up because numbers aren't handled properly (1.txt, 10.txt, 2.txt, etc.), so the easy solution is to zero-pad the numbers. Renaming a bunch of files to add some zeros is no fun though, so here's some solutions.
On Ubuntu, there's …
To make my life easier on my development box, I used this super simple bash oneliner to set up permanent aliases: echo 'alias python='python3'' >> ~/.bashrc
. This writes a new line, containing the text within the quotes, to the bottom of the .bashrc file. This is loaded everytime bash is …