Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

openSUSE Cheat Sheet

+aST A,ministration Too" -un +aST using .t /U # yast --.t -un +aST using /tk /U # yast --gtk -un +aST in te0t-mo,e # yast --nc#"ses nsta"" package using +aST # yast -i packagena%e'"p%

version 0.1

Project homepage http://www.opensuse.org openSUSE Mauritius Team http://www.opensuse-mauritius.org Author Nitin K Sookun a.k.a sh !"og : http://hack"og.in Emai" : ishwon#openSUSE.org Network $iew network inter%aces # ifconfig -a # ip a s # iwconfig &onnect to wire"ess network # iwlist wlan0 scan # iwconfig wlan0 essid NETWORK_ID key WIRELE _KE! Show routes # "o#te -n # netstat -"n Show open T&P/U'P ports # netstat -ntpl# Show a"" open ports # netstat -anp Test host a(ai"a)i"it* # ping -a $ostna%e &hange host name # ec$o &%ac$ine'$ost& ( )etc)*O TN+,E

-emo(e package using +aST # yast --"e%o/e packagena%e'"p% Up,ate package using +aST # yast --#pdate packagena%e'"p% 1ist a(ai"a)"e +aST mo,u"es # yast -l Use mo,u"es # yast %od#lena%e 2+pp S*stem Management 1ist repositories # 0yppe" l" A,, repositor* # 0yppe" a" -f 12RL( 1alias( -e%resh repositories # 0yppe" "ef Up,ate insta""e, packages # 0yppe" #p Per%orm a ,istri)ution upgra,e # 0yppe" d#p -PM nsta""ing a package # "p% -i/$ package'"p% Upgra,ing a package # "p% -2/$ package'"p%

Pu)"ishe, un,er &reati(e &ommons 1icense creati(ecommons.org/"icenses/)*/3.4/

openSUSE Cheat Sheet


-emo(ing a package # "p% -e package'"p% n%ormation on insta""e, -PM # "p% -.i package 1ist a"" insta""e, -PMs # "p% -.al 1ist content o% an -PM # "p% -.lp package'"p% &PU 5 Memor* in%ormation $iew &PU ,etai"s # cat )p"oc)cp#info # g"ep p"ocesso" )p"oc)cp#info # lscp# # #na%e -p # #na%e -i Show running processes # ps -ef # pst"ee # top -c Show memor* use # cat )p"oc)%e%info # f"ee -% Ena)"e/,isa)"e swap # swapon -a # swapoff -a Show a"" open %i"es 5 ,irectories # lsof 3 less # lsof 3 g"ep -i filena%e 6i"e S*stems 1ist ,isks 5 partitions # fdisk -l # fdisk -l )de/)1$)s(d1a)0( 1ist mounte, %i"e s*stems # %o#nt # cat )p"oc)%o#nts Mount a partition # %o#nt -t 1type( 1de/ice( 1%o#nt point(

version 0.1
Mount a &'/'$' iso image # %o#nt -t iso4550 -o loop d/d-i%age'iso 1%o#nt point( Unmount %i"e s*stems # #%o#nt )de/)1de/ice( # #%o#nt )1%o#nt point( Accounts &reate user account # #se"add 1na%e( -# 2ID -g 6ID -d $o%e di"ecto"y -c f#ll #se" na%e -s defa#lt s$ell 'e"ete user account # #se"del 1na%e( &hange user passwor, # passwd 1na%e( Mo,i%* user account # #se"%od 1options( 1na%e( Ser(ices 1ist a"" ser(ices # syste%ctl list-#nits --type se"/ice Ser(ice status # syste%ctl stat#s 1se"/ice na%e( Start/Stop/-estart ser(ice # syste%ctl stop 1se"/ice na%e( # syste%ctl sta"t 1se"/ice na%e( # syste%ctl "esta"t 1se"/ice na%e(

Pu)"ishe, un,er &reati(e &ommons 1icense creati(ecommons.org/"icenses/)*/3.4/

You might also like