Linux Commands

Gängige Linux Commands

Gängige Linux Commands


S. G.
Diese Lernkarten bieten einen umfassenden Überblick über Linux-Befehle für Berufslehrlinge. Sie decken grundlegende und fortgeschrittene Befehle ab, einschließlich Dateiverwaltung, Systemüberwachung, Netzwerkkonfiguration und Prozessverwaltung. Die Karteikarten sind ideal für IT-Auszubildende, die ihre Kenntnisse in der Linux-Befehlszeile vertiefen möchten, um effizienter mit dem System zu arbeiten und komplexe Aufgaben zu bewältigen.
Flashcards
150
Students
1
Language
German
Category
Computer Science
Created / Updated
12.10.2024 / 14.10.2024

Flashcards

Show bootup messages

dmesg

Show CPU information 

cat/proc/cpuinfo

Show free and used memory

free-h

Hardware configuration info

Ishw

Block devices info

Isblk

Tree-diagram of PCI devices

Ispci-tv

Tree-diagram of USB devices

Isusb-tv

Show BIOS hardware info

dmidecode

Show disk data info

hdparm-i/dev/[disk]

Disk read speed test

hdparm-tT/dev/[disk]

Unreadable blocks test

badblocks-s/dev/[disk]

Create a tar file from a file

tar cf (file.tar) [file]

Extract archived file

tar xf [file.tar]

Create a gzip tar file

tar czf [file.tar.gz]

Create a gz compressed file

gzip [file]

Find a package by a keyword

yum search [keyword]

Find info & summary 

yum info [package]

Install a package with YUM

yum install [package.rmp]

Install a package with DNF

dnf install [package.rmp]

Install a local rpm package

rpm -i [package.rpm]

Remove an rpm package 

rpm -e [package.rpm]

Install a package with APT 

apt install [package]

Install software from source code 

tar zxvf [source_code.tar.gz] cd [source_code]./ make make install

Connect to host as user

ssh [user] @ [host]

Connect to host via port 22

 

ssh [host]

Use a non-default port

ssh -p [port] [user] @ [host]

Connect to Telnet via port 23

telnet [host]

Search for a pattern in a file 

grep [pattern] [file]

Search a pattern recursively 

grep -r [pattern] [directory]

Search for files & directories 

locate [name]

List items beginning with [x]

find [/location] -name [x]

List items larger than 100MB

find[/location] -size [100M]

Securely copy file to server 

scp [file.txt] [server/tmp]

Sync the contents of a location with the backup directory 

 

rsync -a [/location] [/backup/]

Show active process snapshot 

ps

Show process as a tree

pstree

Show process memory usage 

pmap

Show all running processes 

top

Kill the process by ID 

kill [process_id]

Kill the process by name 

pkill [process_name]

Study