Open main menu

CDOT Wiki β

Changes

OPS245 Lab 3 dev

1 byte removed, 20:28, 8 February 2023
INVESTIGATION 2: ARCHIVING & RESTORING FILES
#Install tar (if it was missing) sudo dnf install tar
#Change your working directory to '''/usr/share/doc/sudo*'''
#Use the tar (tape archiverarchive) command to create an archive file named "/tmp/archive1.tar" by issuing the following command:<br><b><code><span style="color:#3366CC;font-size:1.2em;">tar cvf /tmp/archive1.tar .</span></code></b>
{{Admon/important | Warning! | Don't miss the <code>.</code> at the end of the <code>tar</code> command (where indicated). It specifies what should go into the archive: the contents of the current directory.}}