This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:general:basics [2021/03/15 12:06] – 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 129: | 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 %%< | ||