In: Computer Science
Unix/Linux
Turn in the following commands and any output from the commands.
1) ll to show the original 3 files
2) run the tar command to stuff three files
3) ll to show the 'tar archive'
4) mkdir newdir to create a new directory to unstuff the 'tar
archive'
first make a new folder and create 3 files file1 file2 file3. then follow the given screenshot.
it has these commands
tar -czvf stuff.tar . => this will zip all files in current dir to tar archive named stuff.tar
mkdir newdir => this create new folder named newdir
tar -xzvf stuff.tar -C newdir/ => this will unzip that tar archive to the given dir in our case its newdir/
In case of any doubt please comment. Happy Learning :)