Tar the current directory
Yeah this should be easy but who remembers *every* command they ever need? For those of us who aren’t tarring shit left & right, day in and day out; here ya go.
This tars the current directory and puts the file wherever you want:
tar -cvvf file.tar *
or, you could only tar a certain type of file if you like:
tar -cvvf file.tar *.txt







Leave a Reply
You must be logged in to post a comment.