| Command |
Description |
|
# date |
show system date [man] |
|
# date 041217002007.00 |
set date and time - MonthDayhoursMinutesYear.Seconds [man] |
|
# dd bs=1M if=/dev/hda | gzip | ssh user@ip_addr 'dd of=hda.gz' |
make a backup of a local hard disk on remote host via ssh [man] |
|
# dd if=/dev/sda of=/tmp/file1 |
backup content of the harddrive to a file [man] |
|
# dd if=/dev/hda of=/dev/fd0 bs=512 count=1 |
make a copy of MBR (Master Boot Record) to floppy [man] |
|
# dd if=/dev/fd0 of=/dev/hda bs=512 count=1 |
restore MBR from backup copy saved to floppy [man] |
|
# df -h |
show list of partitions mounted [man] |
|
# dhclient eth0 |
active interface 'eth0' in dhcp mode [man] |
|
# diff file1 file2 |
find differences between two files [man] |
|
# dmidecode -q |
show hardware system components - (SMBIOS / DMI) [man] |
|
# dos2unix filedos.txt fileunix.txt |
convert a text file format from MSDOS to UNIX [man] |
|
# dosfsck /dev/hda1 |
repair / check integrity of dos filesystems on disk hda1 [man] |
|
# dpkg-query -W -f='${Installed-Size;10}t${Package}n' | sort -k1,1n |
show the used space by installed deb packages, sorting by size (debian, ubuntu and alike) [man] |
|
# dpkg -i [package.deb] |
install / upgrade a deb package [man] |
|
# dpkg -r [package] |
remove a deb package from the system [man] |
|
# dpkg -l |
show all deb packages installed on the system [man] |
|
# dpkg -l | grep httpd |
show all deb packages with the name "httpd" [man] |
|
# dpkg -s [package] |
obtain information on a specific package installed on system [man] |
|
# dpkg -L [package] |
show list of files provided by a package installed on system [man] |
|
# dpkg --contents [package.deb] |
show list of files provided by a package not yet installed [man] |
|
# dpkg -S /bin/ping |
verify which package belongs to a given file [man] |
|
# du -sh dir1 |
estimate space used by directory 'dir1' [man] |
|
# du -sk * | sort -rn |
show size of the files and directories sorted by size [man] |
|
# dump -0aj -f /tmp/home0.bak /home |
make a full backup of directory '/home' [man] |
|
# dump -1aj -f /tmp/home0.bak /home |
make a incremental backup of directory '/home' [man] |