This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:general:basics [2019/03/11 11:47] – lunetikk | linux:general:basics [2022/12/16 10:41] (current) – lunetikk | ||
|---|---|---|---|
| Line 57: | Line 57: | ||
| |  tar cfvz < | |  tar cfvz < | ||
| |  tar -xzfv < | |  tar -xzfv < | ||
| + | |  tar -xvjf < | ||
| + | |  tar -tvf < | ||
| + | |  tar -xvf < | ||
| | last -w | displays the full name instead of only 8 chars | | | last -w | displays the full name instead of only 8 chars | | ||
| |  lsscsi -v  |  lists the scsi device id and its partition | |  lsscsi -v  |  lists the scsi device id and its partition | ||
| Line 63: | 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 < | ||
| + | |  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 103: | 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 ===== | ||
| + | |||
| + | [[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/ | ||
| Line 122: | Line 158: | ||
| |  apt-mark hold [Package] | |  apt-mark hold [Package] | ||
| |  apt-mark unhold [Package] | |  apt-mark unhold [Package] | ||
| + | |  apt-mark showhold | ||
| |  dkpg --install [Package.deb] | |  dkpg --install [Package.deb] | ||
| |  aptitude install [Package] | |  aptitude install [Package] | ||