Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| linux:linux-commands [2019/03/28 02:57] – [Hardware Information / Software Information] 108.225.197.92 | linux:linux-commands [2019/11/07 14:58] (current) – 12.29.70.125 | ||
|---|---|---|---|
| Line 90: | Line 90: | ||
| < | < | ||
| + | |||
| + | < | ||
| + | < | ||
| ===== MySQL Commands ===== | ===== MySQL Commands ===== | ||
| Line 228: | Line 231: | ||
| < | < | ||
| + | ===== Date and time ===== | ||
| + | [[https:// | ||
| ===== Restart Services ===== | ===== Restart Services ===== | ||
| Line 241: | Line 246: | ||
| ===== Hardware Information / Software Information ===== | ===== Hardware Information / Software Information ===== | ||
| - | + | < | |
| - | env | grep ' | + | |
| - will print ' | - will print ' | ||
| - | |||
| < | < | ||
| Line 258: | Line 261: | ||
| - similar to uname -a | - similar to uname -a | ||
| - | |||
| - | < | ||
| - | - Find out what version of linux you are running | ||
| < | < | ||
| Line 441: | Line 441: | ||
| </ | </ | ||
| - for updating multiple git repos in the current folder | - for updating multiple git repos in the current folder | ||
| + | |||
| + | ===== How to kill a process in linux ===== | ||
| + | < | ||
| + | - use this to list all of the current running processes | ||
| + | < | ||
| + | - use this to search the processes for " | ||
| + | < | ||
| + | USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND | ||
| + | root | ||
| + | root | ||
| + | root | ||
| + | root | ||
| + | root | ||
| + | </ | ||
| + | - output looks like this | ||
| + | < | ||
| + | - use this to kill the process, the '' | ||
| + | |||
| + | ===== Linux Time ===== | ||
| + | < | ||
| + | timedatectl set-local-rtc 1 --adjust-system-clock | ||
| + | timedatectl | ||
| + | timedatectl set-local-rtc 0 --adjust-system-clock | ||
| + | </ | ||
| + | - use the first command to set linux to use local time, use the second command to check the settings for time, and use the third command to return it to default | ||