Category: Linux

Package Listing in Debian

Show space used by deb packages installed sorted by size (ubuntu, debian and like) dpkg-query -W -f='{Installed-Size;10}t{Package}n’ | sort -k1,1n

Rename an User Group

Rename a group groupmod -n new_group_name old_group_name

Set Time

Set date and time – MonthDayhoursMinutesYear.Seconds date 041217002007.00

Full Year Calendar

Show the calendar of 2008 cal 2008

Show Interrupts

Show interrupts cat /proc/interrupts

Show file swap

show file(s) swap cat /proc/swaps

Remove SVN Info from a Folder

This command removes the SVN data from a folder. find -name .svn -exec rm -rf {} \;

NIC Card Configuration

Show configuration of an ethernet network card ifconfig eth0

Fetch a URL With a Number Series

Use this command to download numbered content… for ((i=1; i

Zero Padding In Linux Commands

This is how you zero pad a numerical variable in bash. for ((x=1;x<=31;x+=1)); do echo `printf “%02d” $x`; done Original…