image/svg+xml
su -c 'command' run command as rootsu - open a root shellsu - user open a shell as userpasswd change your passwordchown user:group file change owner:group of filechgrp group file change group of filechmod MODE file change file permissions MODE: n1(user)n2(group)n3(others) 4(read)2(write)1(execute) e.g.: 755 read-write-execute for owner, read-execute for group and others. cd directory change to directorycd .. change to parent directorycd - change to previous directorypwd display current directoryls list files in work directoryls -a list all files (including hidden files)cp file dest copy file to destcp -r directory dest copy directory to destmv source dest move/rename file/directory to destmkdir new-directory create new-directoryrm file remove file*rm -r folder remove folder recursively*ln -s file link create symbolic link of filemount -t type device mount-point mount devicemount -o loop iso mount-point mount iso image/home/user or ~/ your home directoryINSTALLING, REMOVING, UPDATING# yum update update all packages# yum install pkg install pkg# yum remove pkg remove pkg$ yum search pkg search pkg$ yum provides */pkg check what provides pkg$ yum info pkg get pkg information$ yum history get installed packages history$ rpm -q pkg get installed pkg versionFIXING YUM'S DATABASE$ yum clean all clean the cache$ yum makecache generate yum cacheFIXING THE RPM DATABASE# rpm -vv initdb# rm -f /var/lib/rpm/__db*# rpm -vv --rebuilddb $ ifconfig show network information$ iwconfig show wireless information# iwlist scan scan for wireless networks# service NetworkManager restart restart NetworkManager# ifup interface bring interface online# ifdown interface disable interface Firewall Configuration# service iptables start/stop start or stop the firewall# iptables -L show current config# iptables -a INPUT -j ACCEPT/REJECT allow or reject all connections# iptables -a INPUT --dport port -j ACCEPT/REJECT allow or reject connection to port# iptables -F reset firewall configSYSTEM SERVICES$ uname -r get kernel release$ uname -a get system information# service daemon start start daemon# service daemon stop stop daemon# service daemon restart restart daemon$ service daemon status view daemon status$ runlevel get current runlevel# chkconfig --level 35 service on/off set service to run/not run in runlevels 3,5DISPLAYCtrl+Alt+Bksp restart X display if frozen*Ctrl+Alt+FN switch to tty NCtrl+Alt+F1 switch back to X display# Xorg -configure create new config file
NETWORK
PERMISSIONS
http://join.fedoraproject.org
# requires root permissions$ requires normal user permissions
# requires root permissions$ requires normal user permissions
# requires root permissions$ requires normal user permissions* disabled by default
FREEDOM.
FRIENDS.
FEATURES.
FIRST.
http://get.fedoraproject.org
CHEAT CUBE
SYSTEM AND DISPLAY
PACKAGE MANAGEMENT
* Use careuflly, especially with the -f option.
FILES & DIRECTORIES
Adult supervision required for using scissors