| Command |
Description |
|
# rar a file1.rar test_file |
create an archive rar called 'file1.rar' [man] |
|
# rar a file1.rar file1 file2 dir1 |
compress 'file1', 'file2' and 'dir1' simultaneously [man] |
|
# rar x file1.rar |
decompress rar archive [man] |
|
# reboot |
reboot(2) [man] |
|
# recode ..HTML < page.txt > page.html |
convert a text file to html [man] |
|
# recode -l | more |
show all available formats conversion [man] |
|
# restore -if /tmp/home0.bak |
restoring a backup interactively [man] |
|
# rm -f file1 |
delete file called 'file1' [man] |
|
# rm -rf dir1 |
remove a directory called 'dir1' and contents recursively [man] |
|
# rm -rf dir1 dir2 |
remove two directories and their contents recursively [man] |
|
# rmdir dir1 |
delete directory called 'dir1' [man] |
|
# route -n |
show routing table [man] |
|
# route add -net 0/0 gw IP_Gateway |
configure default gateway [man] |
|
# route add -net 192.168.0.0 netmask 255.255.0.0 gw 192.168.1.1 |
configure static route to reach network '192.168.0.0/16' [man] |
|
# route del 0/0 gw IP_gateway |
remove static route [man] |
|
# echo "1" > /proc/sys/net/ipv4/ip_forward |
activate ip routing [man] |
|
# rpm -q -a --qf '%10{SIZE}t%{NAME}n' | sort -k1,1n |
show space used by rpm packages installed sorted by size (fedora, redhat and like) [man] |
|
# rpm -ivh [package.rpm] |
install a rpm package [man] |
|
# rpm -ivh --nodeeps [package.rpm] |
install a rpm package ignoring dependencies requests [man] |
|
# rpm -U [package.rpm] |
upgrade a rpm package without changing configuration files [man] |
|
# rpm -F [package.rpm] |
upgrade a rpm package only if it is already installed [man] |
|
# rpm -e [package] |
remove a rpm package [man] |
|
# rpm -qa |
show all rpm packages installed on the system [man] |
|
# rpm -qa | grep httpd |
show all rpm packages with the name "httpd" [man] |
|
# rpm -qi [package] |
obtain information on a specific package installed [man] |
|
# rpm -qg "System Environment/Daemons" |
show rpm packages of a group software [man] |
|
# rpm -ql [package] |
show list of files provided by a rpm package installed [man] |
|
# rpm -qc [package] |
show list of configuration files provided by a rpm package installed [man] |
|
# rpm -q [package] --whatrequires |
show list of dependencies required for a rpm packet [man] |
|
# rpm -q [package] --whatprovides |
show capability provided by a rpm package [man] |
|
# rpm -q [package] --scripts |
show scripts started during installation / removal [man] |
|
# rpm -q [package] --changelog |
show history of revisions of a rpm package [man] |
|
# rpm -qf /etc/httpd/conf/httpd.conf |
verify which rpm package belongs to a given file [man] |
|
# rpm -qp [package.rpm] -l |
show list of files provided by a rpm package not yet installed [man] |
|
# rpm --import /media/cdrom/RPM-GPG-KEY |
import public-key digital signature [man] |
|
# rpm --checksig [package.rpm] |
verify the integrity of a rpm package [man] |
|
# rpm -qa gpg-pubkey |
verify integrity of all rpm packages installed [man] |
|
# rpm -V [package] |
check file size, permissions, type, owner, group, MD5 checksum and last modification [man] |
|
# rpm -Va |
check all rpm packages installed on the system - use with caution [man] |
|
# rpm -Vp [package.rpm] |
verify a rpm package not yet installed [man] |
|
# rpm -ivh /usr/src/redhat/RPMS/`arch`/[package.rpm] |
install a package built from a rpm source [man] |
|
# rpm2cpio [package.rpm] | cpio --extract --make-directories *bin* |
extract executable file from a rpm package [man] |
|
# rpmbuild --rebuild [package.src.rpm] |
build a rpm package from a rpm source [man] |
|
# rsync -rogpav --delete /home /tmp |
synchronization between directories [man] |
|
# rsync -rogpav -e ssh --delete /home ip_address:/tmp |
rsync via SSH tunnel [man] |
|
# rsync -az -e ssh --delete ip_addr:/home/public /home/local |
synchronize a local directory with a remote directory via ssh and compression [man] |
|
# rsync -az -e ssh --delete /home/local ip_addr:/home/public |
synchronize a remote directory with a local directory via ssh and compression [man] |