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 …
The command is long but easy enough:
wget --recursive --page-requisites --html-extension --convert-links --restrict-file-names=windows --domains calculusmadeeasy.org --no-parent http://calculusmadeeasy.org/
--recursive
: download the entire Web site.--domains website.org
: don't follow links outside website.org.--no-parent
: don't follow links outside the directory tutorials/html/.--page-requisites
: get all the elements …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 …
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 …
Recently, I was separated from my usual password manager (KeePass w/ a synchronized database) and needed to generate a random password to add to my database later. Luckily, I had sudo access to a Linux command line, so this was as easy as running sudo apt-get install pwgen
and pwgen …