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 [2018/08/01 19:59] – 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 ===== | ||
| - | < | + | < |
| - | - Find out what version | + | - will print ' |
| + | |||
| + | < | ||
| + | - kernel | ||
| + | |||
| + | < | ||
| + | - sysinfo [linux, hostname, kernel release, ubuntu compiled time, machine arch, processor arch, OS arch, GNU/ | ||
| + | |||
| + | < | ||
| + | - similar to uname -a | ||
| + | |||
| + | < | ||
| + | - similar to uname -a | ||
| < | < | ||
| Line 395: | Line 413: | ||
| ===== Helpful git script ===== | ===== Helpful git script ===== | ||
| + | Run the following from the parent directory, '' | ||
| + | |||
| + | < | ||
| + | find . -type d -depth 1 -exec git --git-dir={}/ | ||
| + | </ | ||
| + | |||
| + | To clarify: | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | To play around with find, I recommend using '' | ||
| + | |||
| + | < | ||
| + | find . -type d -depth 1 -exec echo git --git-dir={}/ | ||
| + | </ | ||
| + | |||
| + | Note: if the '' | ||
| + | |||
| < | < | ||
| find . -type d -depth 1 -exec git --git-dir={}/ | find . -type d -depth 1 -exec git --git-dir={}/ | ||
| Line 401: | 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 | ||