Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:linux:befehle [2023/11/07 16:21] – Automatic translation 82.80.249.212 | en:linux:befehle [2024/02/05 16:10] (current) – old revision restored (2024/01/25 22:19) psycore | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Linux commands | + | {{tag> |
- | + | ====== Linux Commands Cheatsheet | |
- | My collection of commands for [[wpde> | + | |
===== Command list ===== | ===== Command list ===== | ||
Line 12: | Line 11: | ||
| passwd < | | passwd < | ||
| su < | | su < | ||
- | | sudo shutdown | + | | sudo -u www-data command |
| useradd -d < | | useradd -d < | ||
| userdel < | | userdel < | ||
Line 28: | Line 27: | ||
| echo bla > 1.txt | Create file 1.txt with content bla | | | echo bla > 1.txt | Create file 1.txt with content bla | | ||
| echo blabla >> 1.txt | Append blabla to file 1.txt | | | echo blabla >> 1.txt | Append blabla to file 1.txt | | ||
+ | | ls | List directory contents | | ||
+ | | ls -la dir | List directory contents with user information | | ||
| ls -lahS $(find / -type f -size +100000k) | search for files > 100MB | | | ls -lahS $(find / -type f -size +100000k) | search for files > 100MB | | ||
- | | ls -la dir | listing | | ||
| pwd | Output working directory | | | pwd | Output working directory | | ||
| tar xfz u-web-my4.tgz | extract file | | | tar xfz u-web-my4.tgz | extract file | | ||
Line 61: | Line 61: | ||
| kill -19 <PID> | SIGSTOP - Stop process | | | kill -19 <PID> | SIGSTOP - Stop process | | ||
| mount -o remount -rw / | release read-only file system | | | mount -o remount -rw / | release read-only file system | | ||
+ | | ps | process list | | ||
+ | | ps -aux | detailed process list | | ||
- | ==== Network management | + | ==== Netzwerk Management |
^ Command ^ Comment ^ | ^ Command ^ Comment ^ | ||
Line 71: | Line 73: | ||
| wget http:// | | wget http:// | ||
- | ==== Start and stop ==== | + | ==== Start und Stop ==== |
^ Command ^ Comment ^ | ^ Command ^ Comment ^ | ||
Line 79: | Line 81: | ||
| shutdown -s -f | Forced shutdown | | | shutdown -s -f | Forced shutdown | | ||
- | ===== Change | + | ===== Linux Zeit ändern |
Set the time under Linux. ((http:// | Set the time under Linux. ((http:// | ||
Line 111: | Line 113: | ||
</ | </ | ||
- | to deactivate it. The web server must then be restarted with | + | deaktivieren. The web server must then be restarted with |
<code bash> | <code bash> | ||
Line 117: | Line 119: | ||
</ | </ | ||
- | is necessary. | + | nötig. |
===== Run Froxlor Cron ===== | ===== Run Froxlor Cron ===== | ||
- | [[linux:froxlor: | + | [[linux:froxlor_reload|]] |