This article hasn't been updated for over 5 years. The information below may be obsolete.
openSUSE Quick Reference Guide
YaST Administration Tool
| Action | Command |
|---|---|
| YaST using Gtk GUI | # yast --gtk |
| YaST using Qt GUI | # yast --qt |
| YaST in text-mode | # yast --ncurses |
| Install a package | # yast -i <package> |
| Remove a package | # yast --remove <package> |
| Update package | # yast ---update <package> |
| List available YaST modules | # yast -l |
| Use modules | # yast <module> |
ZYpp System
| Action | Command |
|---|---|
| List repositories | # zypper repos |
| Add repository | # zypper addrepo -f <repo-url> <alias> |
| Refresh repositories | # zypper refesh |
| Update installed packages | # zypper update |
| Perform a disribution upgrade | # zypper dup |
RPM
| Action | Command |
|---|---|
| Install a package | # rpm -ivh <package> |
| Remove package | # rpm -e <package> |
| Upgrade a package | # rpm -Uvh <package> |
| Information on installed package | # rpm -qi <package> |
| List all installed packages | # rpm -qal |
| List content of a package | # rpm -qlp <package> |
Networking
| Action | Command |
|---|---|
| View network interfaces | # ifconfig -a # ip a s # iwconfig |
| Connect yo wireless network | # iwlist wlan0 scan # iwconfig wlan essid <network-id> key <wireless-key> |
| Show routes | # route -n # netstat -rn |
| Show open TCP/UFP ports | # netstat -ntplu |
| Show all open ports | # netstat -anp |
| Test host availability | # ping -a <hostname> |
| Change hostname | # echo "newhostname" > /etc/HOSTNAME |
CPU and Memory Information
| Action | Command |
|---|---|
| View CPU details | # cat /proc/cpuinfo # grep processor /proc/cpuinfo # lscpu # uname -p # uname -i |
| Show running processes | # ps -ef # pstree # top -c |
| Show memory use | # cat /proc/meminfo # free -m |
| Enable/Disable swap | # swapon -a # swapoff -a |
| Show all open files and directories | # lsof | less # lsof grep -i <filename> |
File Systems
| Action | Command |
|---|---|
| List disks and partitions | # fdisk -l # fdisk -l /dev/hd[a-z] # fdisk -l /dev/sd[a-z] |
| List mounted file systems | # mount # cat /proc/mounts |
| Mount a partition | # mount -t <type> <device> <mount-point> |
| Mount a CD/DVD ISO image | # mount -t iso9660 -o loop <dvd-image.iso> <mount-point> |
| Unmount file systems | # umount /dev/<device> # umount <mount-point> |
Accounts
| Action | Command |
|---|---|
| Create user account | # useradd <options> <username> |
| Delete user account | # userdel <username> |
| Change user password | # passwd <username> |
| Modify user account | # usermod <options> <username> |
Services
| Action | Command |
|---|---|
| List all services | # systemctl list-units --type service |
| Service status | # systemctl status <service-name> |
| Start/Stop/Restart service | # systemctl start <service> # systemctl stop <service> # systemctl restart <service> |