tar acting out

Chat about Linux in general
Forum rules
Do not post support questions here. Before you post read the forum rules. Topics in this forum are automatically closed 6 months after creation.
Locked
avihai

tar acting out

Post by avihai »

Hi all,

using Centos 7,

having some issues with tar command.

when i run this command
sudo tar -cvf /home/avihai/backup/backup-$(date +"%d-%m-%y_%H:%M").tar /home/avihai/downloads/test/

it works fine !
but when i try to bzip it, it goes nuts

[avihai@Centos-Avihai backup]$ sudo tar -cvjf /home/avihai/backup/backup-$(date +"%d-%m-%y_%H:%M").tar /home/avihai/downloads/test/
tar: Removing leading `/' from member names
/home/avihai/downloads/test/
/home/avihai/downloads/test/IMG_0463.jpg
tar (child): bzip2: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
[avihai@Centos-Avihai backup]$
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Mute Ant

Re: tar acting out

Post by Mute Ant »

bzip2: Cannot exec: No such file or directory <--- HINT HINT Try which bzip2 maybe...

mute@kermes ~ $ which bzip2
/bin/bzip2
avihai

Re: tar acting out [solved]

Post by avihai »

DAMN !!!!

thanks a lot man
Locked

Return to “Chat about Linux”