Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| generic_linux_commands [2023/01/18 13:36] – admin | generic_linux_commands [2023/03/27 22:48] (current) – [TAR WITH EXCLUDE] admin | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| ===== RUN COMMAND AS ANOTHER USER ===== | ===== RUN COMMAND AS ANOTHER USER ===== | ||
| + | < | ||
| # sudo -u zabbix / | # sudo -u zabbix / | ||
| </ | </ | ||
| Line 64: | Line 65: | ||
| ===== TAR WITH EXCLUDE ===== | ===== TAR WITH EXCLUDE ===== | ||
| < | < | ||
| + | cd / | ||
| + | tar --exclude=' | ||
| + | rsync -av *.tgz / | ||
| + | |||
| $ tar cvzf filename.tar.gz /dir1/dir2 --exclude "/ | $ tar cvzf filename.tar.gz /dir1/dir2 --exclude "/ | ||
| </ | </ | ||
| Line 126: | Line 131: | ||
| # tar -x ecu_3_28_5/ | # tar -x ecu_3_28_5/ | ||
| # tar -x ecu_3_28_5/ | # tar -x ecu_3_28_5/ | ||
| + | </ | ||
| + | |||
| + | ===== Source ===== | ||
| + | commands.txt on Seagate 3TB (H: | ||