Tag: shell script
-
Shell Scripting Boot Camp | FreedomPenguin
Doing much on the command-line often leads to some repetition. Learn how to roll up a group of commands by making a shell script.
-
Backups: one quick file backup alias
When you have a file you need to edit and you have the foresight to think, “whoa, make a copy before I destroy…” you often copy hulk.txt to hulk.txt.old (that’s using the minimum of keystrokes: cp hul[tab][tab] hul[tab][tab].old[enter]. Well, a week later, what do you rename your next .old file? .old2? No time to put…
-
Backups: using tar and find
If you are familiar with zip files, they are the DOS version of tar files (tar = Tape Archive). The tar utility is totally intended for storing backups. A quick way to backup your home directory is: cd /home ; tar -cvf home-jed.tar ./jed You might see that command grab a whole lot of stuff…
-
Return of the 007 SSH Agent
Years ago when I first stared listening to podcasts when I had barely worked at PRWeb for a year even, I came up with a piece of shell script to automatically start up an ssh-agent and ask for your passphrase. Unfortunately, the code created tons of ssh-agents, which was unfortunate. Here is a version that…
