Created
November 21, 2018 07:53
-
-
Save qwersk/2863c6e6c11d1fd796fed1676ff11370 to your computer and use it in GitHub Desktop.
Linux commands #linux
This file contains hidden or 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
Find out folder size: | |
`du -sh file_path` | |
du (disc usage) command estimates file_path space usage | |
-s, --summarize | |
display only a total for each argument | |
-h, --human-readable | |
print sizes in human readable format (e.g., 1K 234M 2G) |
Вывести список процессов:
ps aux
a = show processes for all users
u = display the process's user/owner
x = also show processes not attached to a terminal
Вывести необходимый процесс:
ps aux | grep xvfb
Архивировать папку:
tar -cvzf archive_name.tar.gz dirpath
-c create
-v вывод списка упакованных файлов в процессе работы
-z архиватор gzip
-f filename
GET запрос с помощью curl
curl -G --data-urlencode "messtype=email" --data-urlencode "reciplist=EMAIL_TO" --data-urlencode "messbody=test test test" http://ADDRESS
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Узнать свободное/занятое место в файловых системах:
df -h
-h, --human-readable
Отобразит размер в человеко-читаемом формате, добавив названия единиц (Kилобайт, Mегабайт, Гигабайт, Tерабайт)
В текущей папке:
df -h ./
Вики