Linux

Es ist für Administratoren.

Verzeichnisse Directory

Verzeichnis Beschreibung 

Name Beschreibung
Home Directory (Ordner) Folder für Users eigne Dateien.
etc alle Konfiguration datei
dev Devices in Linux alle Geräte oder Deveices sind in file formats gespeichert
tmp temporary files Ordner.nach reboot wird es frei sein. Cleanup services mit denen man kontrollieren kann.
usr user Resources shared files user’s Data ( ZB. fonts-backgrounds-themes).
bin Binary Kommandos
sbin Binary Kommandos für super user( root oder admin) bin in Binären.
var für variable Datei . data die run bei system ZB log file info
root Home directory für root user
proc alle informieren und configuration der Machiene PC- CPU information und es ist read only. Hard und softwares information
opt

optionale software (installieren eien Software in eigenen Ordner)

Linux Basis Ubuntu

Befehle und Beschrubungen

tty Alt+(control) +F1 oder F2´F3´F4 Mann kann 2 Terminal oder mehrere Terminal Öffnen (tty)
Rootuser Rootuser = Super User mit ID 0 ~#
Normal User Normal User ID >=1000 ~$
id zeigt die User ID
Date Zeigt Datum
cal date oder jahr Kalender
su – root switch User to root
su – name switch User to normal user
cat /etc/passwd Users infos (offen einen Text Datei)
cat |more offen einen Text Datei
– / ist sowie Drive c in Windows – root Drive
Help (Kommando ) = beschreibet eine Funktion eines Kommando Z.B help cd
info –Befehle Befehle Info
apt-get install info install info
apropos Suche nach Stichwörtern im man-System (search)
type (Befehl) Gibt Informationen zum Type des Kommandos aus.
history show Kommandos History
history 20 the Last 20 History Zeile
clear Bildschirminhalt löschen
rest Löscht ebenfalls den Bildschirminhalt und setzt dabei aber das Terminal auf seine Voreinstellungen zurück.
uname –a to print system information
cat /proc/cpuinfo Datei cpuinfo lesen
cat /etc/machine-id unique Machine ID
stats When working with package caches on Debian´´ you need to determine if the package list is being updated
env to view the current settings for your environment
find Suchen
find ./ -type d -name ´2014*´ will find directories with names beginning with 2014 located beneath the current directory?
man man Handbuch
man Befehl Handbuch ein Kommando zb man cp
ls –help Befehl -help
whatis ls Info über ls
whereis ls wo ist?
whoami Wer bin ich?
last letzte Befehl
lastlog (inof in /var/log/wtmp)
chvt 2 tty2
yum list available | grep php (search for applications)
ls show files (directory listing)
ls / show root data
ls Ordnerpath/ show data
ls –l show data
ls –a show data
ls –r show data
ls –R show data
ls | tee reuselt.txt schreibte die Ausgabe zu text Datei während des Befhl
pwd wo bin ich (Print working Directory)
cd /name ein Ordner öffnen
cd – lastest work Directory
cd ~ go to home directory
cd ~username home directory for user
touch name to creat text file
touch name1 name 2 to creat 2 text file
. current work directly
.. parent working directory
cd .. home direct to user (up springen)
cd ../../.. (3 mal up springen)
~# Ordner
– /# root
nano filename Edit Text
cat Dateiname anzeigen eine Text Datei
wc zeigen die zeile ´worte und die Zeichens Zahl
nano ist Program für Text
rename unebenen
vi ist Program für Text :qa :qw
sort dateiname | uniq zeigt textinhalte mit abc sortieren
mkdir to make Directory
mkdir /ordner/name name des neue Ordner
cp copy
cp -r copy with recursive
mv name move file
rm remove file
rmdir remove folder
rm –r remove folder folder
rm –rf remove all by force
rm –rf / remove root system by force (don´t try it)
reboot = init 6
shutdown = init 0df
df hd info
df -i (DATEI INODE INFO)
lsblk Hds info
ln -i (hard link) shortcut für einen Datei
ls –s (soft link)
diff datei1name datei2name zeigte die Differenz zwischen zwei text Datei.
apt-get install tree install tree
tree /home zeigte die Ordner und Datei in Tree Form.

Linux Dockers Ubuntu

Installation von Linux Docker