Nathan Wailes - Blog - GitHub - LinkedIn - Patreon - Reddit - Stack Overflow - Twitter - YouTube
bash (command line)
- mv controllers/customers.py{,.tmp}
- I got this tip from Tipene.
How to copy a directory and its contents to another location
http://askubuntu.com/questions/35779/wh ... ctory-mean
Basically, don't forget to use the -R option and to put a "/" on the left of the directory names (you don't need one on the right).
How to force-quit a program from the terminal
http://bdhacker.wordpress.com/2011/08/0 ... in-ubuntu/
Quote:
Step 1. Find “process ID” of the program
Each program/application in Ubuntu has a process ID. type the following command to get it’s process ID. In the example, I’m assuming the program is “jdownloader”
Code:
ps aux | grep -i jdownloader
Now you’ll get an output like the following image. Look at the process ID (marked by yellow background):
Step 2. Kill it!
Once you’ve grabbed the process ID, you can close it by this command:
Code:
kill -9 process-id-of-the-program