cli-tarHow can I use the tar command in Unix to create archives in quiet mode?
The tar command in Unix can be used to create archives in quiet mode by using the -q or --quiet flag. This flag will suppress the output of the command, which is useful for redirecting and piping the output of the command.
Example code
tar -cf archive.tar --quiet file1 file2 file3
Code explanation
tar- the command to create archives-c- the flag to create an archive-f- the flag to specify the name of the archive--quiet- the flag to suppress the output of the commandfile1,file2,file3- the files to be included in the archive
Helpful links
More of Cli Tar
- How do I use the tar command line in Windows 10?
- How can I use tar commands to zip a file?
- How do I use the tar command on Windows?
- How do I use the command line to tar and zip a file?
- How do I choose between gzip and tar.gz when compressing files?
- How do I compress a file using gzip and tar.xz?
- How do I use the command line to create a tar file?
- How do I use tar gzip with a password?
- How do I use the command line to tar and zip files?
- How do I use gzip and tar in Linux?
See more codes...