Skip to content

Instantly share code, notes, and snippets.

@st4lk
Last active June 17, 2021 05:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save st4lk/262d85c6857edbd9896c to your computer and use it in GitHub Desktop.
Save st4lk/262d85c6857edbd9896c to your computer and use it in GitHub Desktop.
bash: tar ps find dpgk install remove
# показать все процессы:
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
@Mihailov-SA
Copy link

Mihailov-SA commented Jun 17, 2021

#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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment