| df |
-h |
disk free |
| cp |
|
kopieren |
| |
-r |
incl subdirectories |
| |
-f |
Datei mit gleichen Namen ersetzen |
| rm |
|
remove file |
| rmdir |
-r |
auch verzeichnisse mit inhalt löschen |
| find |
. |
|
| |
-size 0 |
grösse = 0 |
| |
ls |
detailliert |
| touch |
privat.txt |
File anlegen |
| pwd |
|
Print working directory |
| id |
|
wer bin ich gerade |
| mkdir |
data |
verzeichnis anlegen |
| fdisk |
-l /dev/hda |
Festplatte ansehen |
| mkdosfs |
/dev/hda10 |
HDD formatieren / FS FAT |
| mkreiserfs |
/dev/hda10 |
HDD formatieren / FS reiser |
| mc |
|
Filemanager |
| |
|
|
| vi |
|
editor |
| |
esc x ! : |
abspeichern |
| |
esc : w Q |
abspeichern |
| |
esc : x |
ende: |
| |
dd |
zeile löschen |
| dmesg |
|
alle infos sehen |
| ifconfig |
-a |
NIC ansehen |
| su |
|
switch user --> zu root wechseln |
| ifup eth0 |
|
konfig wird neu geladen |
| ifdown eth0 |
|
|
| netstat |
-rn |
routing tabelle zB route add default gw 10.10.1.1 |
| |
|
route add -net 10.9.0.0 netmask 255.255.0.0
gw 10.10.1.1 |
| ls |
-dl unix* |
sehe alle verzeichnisse die mit unix beginnen |
| |
*.conf |
alle *.conf - files |
| rpm |
-qa |
sieht alle packages sie am system installiert sind |
| |
|
q --> query a --> all installed
packages |
| rpm |
-ql samba-client |more |
inhalt des smb clients ansehen |
| |
|
|more --> seitenweise |
| rpm |
-qa |grep samba |
|
| rpm |
-qi samba |
ist samba installiert |
| uname |
-a |
derzeitige kernelversion |
| chkconfig |
--list |more |
|
| fdisk |
-l /dev/hda |
partition der hda ansehen |
| ps |
-ef |grep cron |
schauen ob cronjob im hintergrund läuft |
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| von cd installieren |
| mount |
/dev/cdrom |
|
| umount |
/dev/cdrom |
de mount vom cdrom |
| ls |
/media/cdrom/suse/i586/sam* |
samba suchen |
| rpm |
-ivh /media/cdrom/suse/i586/samba-2.2....... |
samba installieren -i --> install
v -->verbose h -->hash |
| rpm |
-qi samba |
ist samba installiert |
| /etc/samba |
smb.conf |
Konfigurationsdatei von samba |
| konfiguration: zB Samba |
| |
/etc/samba/config.conf (smb.conf) |
Konfigurationsfile |
| |
rc [servicename] start |
Service starten (zB rc smb & rc nmb / sharing & netbios) |
| |
check config |
Service fixieren (nach jedem restart auch wieder starten) |
| find |
/-name "smb.*" |
|
| smbpasswd |
-a gerhard |
schauen ob es gerhard gibt |
| grep |
gerhard /etc/passwd |
|
| testparm |
|more |
smbconf testen |
| rcsmb |
start |
für sharing |
| rcnmb |
start |
für netbios |
| |
|
1) user unter suse anlegen |
| smbpasswd |
-a |
user zu samba hinzufügen |
| smbstatus |
|
wer greift gerade auf samba zu |
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| vi |
Kommandos |
|
| start |
vi [file] |
|
| |
|
|
| move the cursor |
|
|
| li-re |
l, h |
|
| wort |
w, W |
|
| linie runter/rauf |
j, k |
|
| screen |
ctrl/b, ctrl/f |
|
| |
|
|
| insert text |
|
|
| after cursor |
a |
|
| end of Line |
A |
|
| before cursor |
i |
|
| begin of line |
I |
|
| |
|
|
| Delete text |
|
|
| a charakter |
x, X |
|
| a word |
dw, dW |
|
| a line |
dd |
|
| |
|
|
| Leave vi |
|
|
| saving change |
:wq |
|
| no save |
:q! |
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|