This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
linux:general:basics [2019/04/17 11:04] – lunetikk | linux:general:basics [2022/08/31 10:14] – [Linux Commands] 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 < | | 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 104: | Line 111: | ||
===== SLES Commands ===== | ===== SLES Commands ===== | ||
- | [[https:// | + | [[https:// |
+ | [[https:// | ||
- | ===== SLES Commands ===== | + | ^ 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 %%< | ||
- | [[https://en.opensuse.org/images/3/30/Zypper-cheat-sheet-2.pdf|Zypper | + | ===== Redhat Commands ===== |
+ | |||
+ | [[https://access.redhat.com/articles/yum-cheat-sheet|Yum Cheat Sheet]] | ||
+ | |||
+ | ^ 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 |\\ | ||
+ | | yum update | ||
+ | | yum update %%< | ||
+ | | yum reinstall %%< | ||
+ | | yum remove %%< | ||
+ | | yum downgrade %%< | ||
+ | | yum --disablerepo=" | ||
===== Ubuntu/ | ===== Ubuntu/ | ||
Line 127: | Line 157: | ||
| 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] |