Ulyssesonline

the tech surfer

  • Home
  • About
  • Archives
You are here: Home / Home

January 8, 2003

Tar Command

Tarballs are life savers. I have use the tar command exclusively for backups. The tar command is used for creating a tarball. It is also used for viewing, adding, and extracting files to and from a tarball. There are 4 important tar commands that every Linux administrator should know.

Creating a tarball ==> “tar -cvf tarball.tar files”
Adding files to a tarball ==> “tar -rvf tarball.tar files”
Extracting files from a tarball ==> “tar -xvf tarball.tar dir”
Viewing the contents of a tarball ==> “tar -tvf tarball.tar”

“files” = can be substituted as a single file, wildcard entries or a directory.

Filed Under: Uncategorized

January 8, 2003

Creating and removing softlinks

Are you tired of typing out long and wordy directories in Linux? Linux links can simplify your life by taking advantage of the ls command. You can make two types of links, a hardlink vs. a softlink. Softlinks are more common due to its flexibility.

To create a softlink, you need to issue the “ln -s filename linkname” command at the shell prompt.

To remove the softlink, simply issue the “rm linkname” command.

Filed Under: General

  • « Previous Page
  • 1
  • …
  • 597
  • 598
  • 599

Copyright © 2003 - 2018