Category: Linux

Convent Ico to Gif

This will convert all the ico files in the folder to gif. It uses the final frame of the ico…

Using Rar in Linux

Create an archive rar called ‘file.rar’ rar a file.rar test_file

Perl Joke

Just a joke – no offense intended… perl -e ‘a=”etbjxntqrdke”;a=~s/(.)/chr(ord(1)+1)/eg;printa’

Create a config file for DosBox in Linux

If you are using dosbox to play old games in linux, you can use this command to create a config…

Find Duplicate Lines

Sort contents of two files by viewing only duplicate line sort file1 file2 | uniq -d

Copy all Txt Files

Find and copy all files with ‘.txt’ extention from a directory to another find /home/binnyva -name ‘*.txt’ | xargs cp…

Change the Shell

Use this command to change the default shell you are using. chsh

Mount Windows Network Share with Samba

Use this command to mount a share on a windows system. It uses Samba. mount -t smbfs -o username=user,password=pass //WinClient/share…

Sort and Unique

Sort contents of a file and remove repeated lines sort file.txt | uniq

Restore Backup Created by dump

Restoring a backup created by the dump command. restore -if home_backup.bak