Posts Tagged ‘linux’

Using screen for linux background processing

Perfect for long running batch jobs on a remote server over unreliable connections or if you want to bring your laptop home (instead of keeping that terminal running).
Log in and run
screen -t title_of_your_choice
Do the same thing again if you want to create another window.
All the following screen commands are preceeded by Ctrl-a (i.e. first press [...]

Count files recursively in a directory using Linux

Using Linux, to get the number of files in the current directory, use:
ls -1 | wc -l
To count the number of files recursively in the current and all directories below it, use:
find . -type f | wc -l

Simple Backup on Linux and Ubuntu

Incremental encrypted remote backup using Amazon S3: Duplicity
Incremental backup to another (remote) directory: rdiff-backup
Easily available on Ubuntu using:
sudo apt-get rdiff-backup
Nice instructions for automating and scheduling backups.
Simple backup by simply tar’ing everything, instructions on Ubuntu Forums.