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

A Shell Script to Create a Build of Firefox Extension

This shell script will create a build of a firefox extension in linux. This is created according to my details(eg,…

Show all Installed Packages in Debian

Show all deb packages installed on the system dpkg -l

Incremental Backup using dump

Make a incremental backup of directory ‘/home/binnyva’ dump -1aj -f home.bak /home/binnyva/

Backup Using ‘dump’ command

Make a full backup of directory ‘/home’ dump -0aj -f home.bak /home

Remove Even Lines

This command removes all the even lines from the file given as the argument cat example.txt|awk ‘NR%2==1’

lsattr

Show specials attributes lsattr

Force Download Dialog with PHP using octect-stream

Use this code to force a download of any type of content with PHP header(“Content-type:application/octect-stream”); header(‘Content-Disposition: attachment; filename=filename_’ . date(‘Y-m-d’)…