How to Use Tar on Linux | Command Line Tips from Linode's Top Docs

Поділитися
Вставка
  • Опубліковано 3 гру 2024

КОМЕНТАРІ • 15

  • @danielnadar75
    @danielnadar75 Рік тому +1

    The only video I ever need for understanding tarball and compression! Thanks a lot Jay you are wonderful.

  • @BillAugersdca
    @BillAugersdca 2 роки тому

    I always get something useful from watching your videos, thanks mate.

  • @zameerpashablr
    @zameerpashablr Рік тому

    You are the Genuine Master of Linux in this World. God bless you.

  • @baruchben-david4196
    @baruchben-david4196 2 роки тому +1

    When using chown, if your group and user are the same, you can do chown -R name: . The colon implies the group is the same as the user.

  • @gracienlebel4824
    @gracienlebel4824 2 роки тому +1

    This tutorials ate awesome, so useful

  • @nopenope6272
    @nopenope6272 Рік тому +1

    its fucking amazing I have to go to UA-cam to get taught shit. taking a college class for linux and they not teaching me shit. dunno why I'm paying for nothing

  • @keffen611
    @keffen611 2 роки тому +1

    Thanks Jay. What's the difference between etc and /etc?

    • @shallex5744
      @shallex5744 2 роки тому +2

      /etc means the directory 'etc' located in the root of the filesystem, which is represented by the / character by itself, the full path of the directory being /etc, and is a directory that exists on every Linux system as a place to store system-wide configuration files
      the etc directory without the slash was a newly-created directory by Jay, which was created in Jay's home directory when he copied it from /etc
      the full path of Jay's etc copy would be /home/jay/etc, or represented in short as ~/etc, with ~ being shorthand for your own user's home directory, but was simply referred to as 'etc' because Jay was already working from within his own home directory, therefore specifying its full path was unnecessary

    • @abhishektyagi4428
      @abhishektyagi4428 2 роки тому

      @@shallex5744 thanks , also how would you differentiate/understand Trailing slashes / example - when using mv command or something else - mv source /dir or mv source/ /dir/

    • @shallex5744
      @shallex5744 2 роки тому

      @@abhishektyagi4428 i'm not sure, i never use trailing slashes (intentionally), but after testing it just now, moving the file source/ with the slash at the end doesn't work because putting the slash at the end makes the mv command think you're trying to move a directory when it is actually a file, and gives the error "Not a directory"

  • @send2gl
    @send2gl Рік тому

    I've often wondered, as the tar file is uncompressed and the same size as all files combined why not just create a new directory instead of the tar file? The directory can be compressed if there is a need to save space.

    • @AkamaiDeveloper
      @AkamaiDeveloper  Рік тому

      The command syntax you're looking for is:
      tar -xf $FILENAME.tar.gz --one-top-level=$NEW_DIRECTORY_NAME
      This will create a new directory within your current directory and unzip the contents of the tarball into that directory. On its own, tar just bundles files, you'd need to add -c to your command to actually compress the newly created tarball.

  • @berrywin
    @berrywin 2 роки тому +1

    I know this is an example but making a backup of /etc and make all files belong to a non sudo user makes the files unusable.

  • @siov4279
    @siov4279 3 місяці тому

    googling this question about ubuntu was so much easier for some reason?

  • @siov4279
    @siov4279 3 місяці тому

    question is; how to run .tar.gz from Linux mint. BUT EVERYONE HAS nothing BUTconcvoluted answers!