Archive

Archive for July, 2010

Using Tar for Backups

July 23rd, 2010

Update file that already exists in tar archive
[root@james ~]# tar -uvf ./test.tar updatefile
Append file that doesnt not exist to archive.
[root@james ~]# tar -rvf ./test.tar newfilesfile
Extract one file from archive.
[root@james ~]# tar -xvf ./test.tar somefile

 

Uncategorized

Working with ‘Apt’ in Ubuntu

July 10th, 2010

Search for a package

apt-cache search <phrase>

Install a package

apt-get install <package>

Upgrade kernel

apt-get dist-upgrade

Uncategorized

Using the ‘touch’ command

July 7th, 2010

Create a new file using touch and modify its access time.

Set the date to Feb 1st, 2009 @ 730am.

[root@stone backups]# touch testfile2 -t 200902010730 testfile2

Verify settings..
[root@stone backups]# ls -la | grep testfile2
-rw-r–r–  1 root katze          0 Feb  1  2009 testfile2

Uncategorized