Archiving & Tuning Flashcards
Archive folder /etc using tar and gz
tar cfz etc.tar.gz /etc
Archive folder /etc using tar and bz2
tar cfj etc.tar.bz2 /etc
Archive folder /etc using tar and xz
tar cfJ etc.tar.xz /etc
List the content of a tar file
tar tf etc.tar (t for test)
Extract tar file to a specified target directory
tar xf etc.tar -C etc-backup
What recommended ways to copy files to remote servers rsync or scp?
rsync or sftp
scp is insecure
You are in sftp. What commands are used to navigate local file system?
lpwd, lcd, lls, lmkdir
In sftpt download a directory and its full content
get -r dir
Copy dirA to serverA
rsync -av dirA servera:
Diff between:
rsync -a dirA dirB
rsync -a dirA/ dirB
First copies the folder dirA. Second copies the content of dirA
What is the name of the perf tuning daemon?
tuned
What command do you use to interface with the perf tuning daemon
tuned-adm
Install perf tuning daemon
dnf install tuned
Determine currently active tuning profile
tuned-adm active
Show all perf tuning profile
tuned-adm list