openSUSE Cheat Sheet version 0.1

YaST Administration Tool

Run YaST using GUI # yast –-qt

Run YaST using Gtk GUI # yast --

Run YaST in text-mode # yast --

Install package using YaST Project homepage # yast -i packagename.rpm http://www.opensuse.org Remove package using YaST openSUSE Mauritius Team # yast --remove packagename.rpm http://www.opensuse-mauritius.org Update package using YaST Author # yast --update packagename.rpm Nitin K Sookun a.k.a Ish Blog : http://hacklog.in List available YaST modules Email : [email protected] # yast -l

Use modules Network # yast modulename

View network interfaces ZYpp System Management # ifconfig -a # ip a s List repositories # iwconfig # zypper lr

Connect to wireless network Add repository # iwlist wlan0 scan # zypper ar -f # iwconfig wlan0 essid NETWORK_ID key WIRELESS_KEY Refresh repositories # zypper ref Show routes # route -n Update installed packages # netstat -rn # zypper up

Show open TCP/UDP ports Perform a distribution upgrade # netstat -ntplu # zypper dup

Show all open ports RPM # netstat -anp Installing a package Test host availability # rpm -ivh package.rpm # ping -a hostname Upgrading a package Change host name # rpm -Uvh package.rpm # echo 'machine.host' > /etc/HOSTNAME

Published under Creative Commons License creativecommons.org/licenses/by/3.0/ openSUSE Cheat Sheet version 0.1

Removing a package Mount a CD/DVD iso image # rpm -e package.rpm # mount -t iso9660 -o loop dvd-image.iso Information on installed RPM # rpm -qi package Unmount file systems # umount /dev/ List all installed RPMs # umount / # rpm -qal Accounts List content of an RPM # rpm -qlp package.rpm Create user account # useradd CPU & Memory information -u UID -g GID View CPU details -d home directory # cat /proc/cpuinfo -c full user name # grep processor /proc/cpuinfo -s default shell # lscpu # uname -p Delete user account # uname -i # userdel

Show running processes Change user password # ps -ef # passwd # pstree # top -c Modify user account # usermod Show memory use # cat /proc/meminfo Services # free -m List all services Enable/disable swap # systemctl list-units --type service # swapon -a # swapoff -a Service status # systemctl status Show all open files & directories # lsof | less Start/Stop/Restart service # lsof | grep -i filename # systemctl stop # systemctl start File Systems # systemctl restart

List disks & partitions # fdisk -l # fdisk -l /dev/d

List mounted file systems # mount # cat /proc/mounts

Mount a partition # mount -t

Published under Creative Commons License creativecommons.org/licenses/by/3.0/