Linux command and other help

From Wikibooks, open books for an open world
Jump to navigation Jump to search
Linux commands and other help by Author:Rana Rizwan Ahmed, translated by English
Linux



Linux commands and other help[edit | edit source]

  • rpm -qpi filename.rpm ---- get information
  • rpm -i filename.rpm ---- install package
  • rpm -e package ---- uninstall package
  • find . -iname file* ---- search file* case insensitive under current directory recursively
  • mkbootdisk --device /dev/fd0 'uname -r' ---- Make boot Disk
  • dd if = /dev/fd0 of = $home/bootdisk.img bs=1440 ---- backup floppy image to disk
  • dd if =$home/bootdisk.img of =/dev/fd0 ---- restore image from disk to floppy
  • df ---- disk free (report filesystem disk space usage)
  • mount -a /dev/scd0 /mnt/cdrom ---- mount a cd-r disc
  • tar -zxvf filename.tar ---- tar uncompress from filename.tar
  • tar -zcvf filename.tar /pkgs ---- tar directory /pkgs in recursively to filename.tar
  • tar -xIf filename.bz2 ---- uncompress bz2 support
  • su ---- become supervisor
  • umount /dev/cdrom ---- unmount cdrom
  • mount -t vfat /dev/hda? /mnt/win_c ---- mount a win9x partition /dev/hda? in /mnt/win_c with fat support
  • lilo -v ---- active /etc/lilo.conf configure