Skip to content

nixCraft

Linux and Unix tutorials for new and seasoned sysadmin

  • Home
  • About
  • Linux Shell Scripting TutoriaL
  • RSS/Feed
  • Donations
  • Search

nixCraft

Linux and Unix tutorials for new and seasoned sysadmin

nixCraft

Tag: creating a tarball from a file list

How to find and tar files into a tar ball

last updated December 27, 2017 in Categories BASH Shell, Linux, UNIX

I would like to find all documents file *.doc and create a tarball of those files and store in /nfs/backups/docs/file.tar. Is it possible to find and tar files on a Linux or Unix-like system?

1 Comment

Exclude Certain Files When Creating A Tarball Using Tar Command

last updated August 23, 2012 in Categories Backup & Recovery, Fedora Linux, File system, FreeBSD, Linux, OpenBSD, Solaris-Unix, UNIX

How can I keep out certain files when creating a tarball? For example:

/home/me/file1
/home/me/dir1
/home/me/dir2
/home/me/abc
/home/me/xyz

How do I execute zyz and abc file while using a tar command?

7 Comments

Cool Linux penguin shirt

FEATURED ARTICLES

  • 1
    30 Cool Open Source Software I Discovered in 2013
  • 2
    30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
  • 3
    Top 32 Nmap Command Examples For Linux Sys/Network Admins
  • 4
    25 PHP Security Best Practices For Linux Sys Admins
  • 5
    30 Linux System Monitoring Tools Every SysAdmin Should Know
  • 6
    40 Linux Server Hardening Security Tips
  • 7
    Linux: 25 Iptables Netfilter Firewall Examples For New SysAdmins
  • 8
    Top 20 OpenSSH Server Best Security Practices
  • 9
    Top 25 Nginx Web Server Best Security Practices
  • 10
    My 10 UNIX Command Line Mistakes

Sign up for my newsletter

Sign up for my newsletter



RSS Recently updated

  • Debian Linux 9.8 released and here is how to upgrade it
  • How to ping and test for a specific port from Linux or Unix command line
  • How to find a folder in Linux using the command line
  • Debian Linux 9.7 released and here is how to upgrade it
  • Ubuntu Enable & Set up Automatic Unattended Security Updates
  • Linux hide processes from other users and ps command
  • Understanding Bash fork() Bomb :(){ :|:& };: code
  • vim-plug: A beautiful and minimalist vim plugin manager for Linux/Unix users
  • Linux / UNIX: Bash Script Sleep or Delay a Specified Amount of Time
  • KSH redirect stdout and stderr to a file on Linux or Unix

Corporate Patron

  • Linode
  • Cloudflare
  • Prospect One
nixCraft @2000-2019 nixCraft. All rights reserved.
  • PRIVACY
  • TERM OF SERVICE
  • CONTACT/EMAIL
  • DONATIONS
  • Search