Ultima attività 4 months ago

bash.sh Raw
1# process
2sudo -i
3hostnamectl
4lspci
5top
6find / -name ${FILE_NAME}
7ps aux | grep ${APP_NAME}
8sudo pmset repeat cancel
9sudo pmset repeat restart MTWRFSU 00:00:00
10cat /dev/null > ~/.bash_history
11
12# ssh
13scp .\Downloads\${FILE} ${USER}@${SERVER}:~
14
15# zip/unzip
16zip -r squash.zip file1 file2 file3
17unzip squash.zip
18
19# docker
20docker cp ./path/file.ext CONTAINER_NAME:/file.ext # Copy to docker
21docker cp CONTAINER_NAME:/path/file.ext ./path/ # Copy from docker