This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:general:basics [2019/12/23 15:42] – lunetikk | linux:general:basics [2022/12/16 10:41] (current) – lunetikk | ||
|---|---|---|---|
| Line 66: | Line 66: | ||
| |  find /tmp -type f -atime +30 -delete | |  find /tmp -type f -atime +30 -delete | ||
| |  dpkg --print-architecture | |  dpkg --print-architecture | ||
| - | |  nmap -sL <IP like 192.168.178.*> | + | |  nmap -sL <IP like 192.168.178.*> | 
| + | |  nmap -sn <IP like 192.168.178.*> | ||
| |  yes %%|%% yum install < | |  yes %%|%% yum install < | ||
| - | |  du -hs * | sort -h | head | + | |  du -hs * %%|%% sort -h %%|%% head | 
| + | |  rm !(*.log) | ||
| + | |  ps -f -p <PID> -o lstart= | ||
| + | |  install -d -o < | ||
| ==== Save textfile with password (VIM) ==== | ==== Save textfile with password (VIM) ==== | ||
| Line 107: | Line 111: | ||
| ===== SLES Commands ===== | ===== SLES Commands ===== | ||
| - | [[https:// | + | [[https:// | 
| + | [[https:// | ||
| ^  Command | ^  Command | ||
| Line 117: | Line 122: | ||
| |  zypper ar %%< | |  zypper ar %%< | ||
| |  zypper mr -e %%< | |  zypper mr -e %%< | ||
| + | |  zypper se -s %%< | ||
| ===== Redhat Commands ===== | ===== Redhat Commands ===== | ||
| Line 127: | Line 133: | ||
| |  yum repolist | |  yum repolist | ||
| | yum clean all | Clean all packages and meta data from cache |\\ | | yum clean all | Clean all packages and meta data from cache |\\ | ||
| + | |  rm -rf / | ||
| |  yum update | |  yum update | ||
| |  yum update %%< | |  yum update %%< | ||