This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:general:basics [2019/08/13 13:48] – 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 | ||
| + | |  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 | ||
| + | |  zypper ref  |  Refresh repositorys | ||
| + | |  zypper up  |  Update packages | ||
| + | |  zypper in %%< | ||
| + | |  zypper info %%< | ||
| + | |  zypper lr  |  List repositorys | ||
| + | |  zypper ar %%< | ||
| + | |  zypper mr -e %%< | ||
| + | |  zypper se -s %%< | ||
| ===== Redhat Commands ===== | ===== Redhat Commands ===== | ||
| [[https:// | [[https:// | ||
| + | |||
| + | ^  Command | ||
| + | |  yum list all  |  Show all available and installed packages | ||
| + | |  yum search %%< | ||
| + | |  yum repolist | ||
| + | | yum clean all | Clean all packages and meta data from cache |\\ | ||
| + | |  rm -rf / | ||
| + | |  yum update | ||
| + | |  yum update %%< | ||
| + | |  yum reinstall %%< | ||
| + | |  yum remove %%< | ||
| + | |  yum downgrade %%< | ||
| + | |  yum --disablerepo=" | ||
| ===== Ubuntu/ | ===== Ubuntu/ | ||