Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:linux:befehle [2023/11/07 16:21] – Automatic translation 82.80.249.212en:linux:befehle [2024/08/23 11:13] (current) psycore
Line 1: Line 1:
-====== Linux commands ====== +{{tag>english linux debian cheatsheet collection}} 
- +====== Linux Commands Cheatsheet ======
-My collection of commands for [[wpde>Linux]] .+
  
 ===== Command list ===== ===== Command list =====
Line 12: Line 11:
 | passwd <username> | Change password | | passwd <username> | Change password |
 | su <user> | set user | | su <user> | set user |
-| sudo shutdown -Pass command as root |+| sudo -u www-data command Execute command as user www-data |
 | useradd -d <homedir> <username> | create user with home dir | | useradd -d <homedir> <username> | create user with home dir |
 | userdel <username> | delete user | | userdel <username> | delete user |
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://www.psoft.net/shiv/HS/u-web-my4.tgz | gets file | | wget http://www.psoft.net/shiv/HS/u-web-my4.tgz | gets file |
  
-==== Start and stop ====+==== shutdown options ====
  
 ^ Command ^ Comment ^ ^ Command ^ Comment ^
Line 79: Line 81:
 | shutdown -s -f | Forced shutdown | | shutdown -s -f | Forced shutdown |
  
-===== Change Linux time =====+===== change system time =====
  
-Set the time under Linux. ((http://yellowpad.info/linux/date_time.asp))+Set the time under Linux. ((https://wiki.ubuntuusers.de/Systemzeit/)) 
 + 
 +==== show time ====
  
 <code bash> <code bash>
-[me@mybox me]$ su +timedatectl 
-password:+</code>
  
-Check the current date and time of the Linux box by entering:+==== change time ====
  
-[root@mybox me]# date +Set time zone manually
-Linux yields the current settings: +
-[root@mybox me]# Wed Apr 7 12:03:45 EDT 2004+
  
-Change the current time and date of the Linux box by entering: +<code bash> 
-[root@mybox me]# date 040713032004 +sudo timedatectl set-timezone Europe/Berlin 
-would change the time and yield: +</code> 
-[root@mybox me]$ Wed Apr 7 13:03:00 EDT 2004+ 
 +Select time zone 
 + 
 +<code bash> 
 +sudo dpkg-reconfigure tzdata
 </code> </code>
  
Line 111: Line 117:
 </code> </code>
  
-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 123:
 </code> </code>
  
-is necessary.+nötig.
  
 ===== Run Froxlor Cron ===== ===== Run Froxlor Cron =====
  
-[[linux:froxlor:reload|]]+[[en:linux:froxlor_reload|]]