Category: Linux

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

lsattr

Show specials attributes lsattr

Make a File Immutable

Makes a file immutable – it can not be removed, altered, renamed or linked chattr +i file

View some lines in a file

View from 1th to 5th line sed -n ‘1,5p;5q’ example.txt

Move Subfolder Files to Current Folder

This command moves all the files in the subfolder to the current folder. mv */* .

Remove Empty Characters at End of Lines

Remove empty characters at the end of each row sed -e ‘s/ *$//’ file.txt

Fish Shell Command History Meme

Use this command if you want to know your command usage stats in the fish shell. grep -v “^\#” “.config/fish/fish_history”|awk…