🔌 Toolbox of short, reusable pieces of code and knowledge.
Instead of having to write out python3 prog.py
every time, you can do
ctrl + p
to type the previous command!
wget -r --no-parent <site-url-here>
Useful for getting LaTeX source from Arxiv papers.
tar -xvf <file-name-here>
Secure copy protocol (scp) provides a way to transfer files between two unix computers (and works with SSH too!)
File:
scp [options] username1@source_host:directory1/filename1 username2@destination_host:directory2/filename2
Directory:
just add the -r
flag:
Example:
scp -r sunetid@myth.stanford.edu:WWW .