Last active
June 17, 2021 05:34
-
-
Save st4lk/262d85c6857edbd9896c to your computer and use it in GitHub Desktop.
bash: tar ps find dpgk install remove
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# показать все процессы: | |
ps aux | less | |
# добавить auto-run startup commands команду в | |
/etc/rc.local | |
# Вывод списка установленных пакетов: | |
dpkg -l [маска] | |
# удалить пакет: | |
apt-get remove --purge your_program | |
# запаковать в tar.gz | |
tar zcvf backup.tar.gz * | |
# распаковать из tar.gz | |
tar zxf backup.tar.gz | |
tar -cjf archivefile.tar.bz2 file-list | |
tar -xjf archivefile.tar.bz2 | |
tar -pczf logs.tar.gz * | |
find . | xargs grep 'string' -sl | |
ignore case: | |
find . | xargs grep 'string' -sli |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#FIND ALL FILES LARGER 100M
sudo find / -size +100M -exec ls -lh {} ;
#SHOW DIR SIZES IN / SORTED BY SIZE
sudo du -hcs /* | sort -rh
#find all deleted and blocked files
sudo lsof | grep deleted | numfmt --field=8 --to=iec