reading or deleting file from tar backup
location: linuxquestions.com - date: October 17, 2006
hi friends, can we delete a perticualr file from
catridge. The catridge is having tar backup using
tar commnad. also how to find a perticualar file
existing in tar backup of catridge.
thanks
Emergency mode: sulogin fails after recovery from tar backup
location: linuxexchange.com - date: November 3, 2015
Using Fedora 22 with latest kernel
I recent had to change my harddrive, but didn't want to reinstall everything.
So I created a tar backup of my / system and my /home with a command like this
tar -cvpzf backup.tar.gz -C /my/external/harddrive --one-file-system /
I then changed my hardrive to the new ssd, nd reinstalled a minimal version of Fedora 22 on the computer, ran dnf update kernel to get latest kernel (the same I was using before the backup)
Then went on a live disk and resotred my system with a command like this one:
sudo tar -xvpzf /path/to/backup.tar.gz -C /my/externel/harddrive --numeric-owner
Everything seemed fine. My files where back and all.
Then when I try to boot on my new system, it goes straight to emergency mode, and when I try to login with my root credentials, I get this:
Here is a screenshot:
sulogin : failed to execute /bin/bash: Permission denied
sulogin: failed to execute /bin/sh: Permission denied
Error getting authority: Error initalizing authoti
How to extract a single file from tar to a different directory? [closed]
location: linuxexchange.com - date: February 12, 2012
I know that I can use following command to extract a single file to the current working directory (assume I have a tar file named test.tar and a file named testfile1 and testfile2 are inside it):
$tar xvf test.tar testfile1
And I can use -C option to extract files to another directory:
$tar xvf test.tar -C anotherDirectory/
When I incorporate the above two techniques together, I suppose that I can extract a single file to another directory.
$ tar xvf test.tar testfile1 -C anotherDirectory/
But the result is I can only extract the testfile1 to the current working directory, rather than the anotherDirectory.
I want to know how can I extract a single file from tar to a different directory?
Extract 1 file from tar.gz with bash
location: linuxexchange.com - date: January 1, 1970
Is it possible to programmatically pull a single file from a decently sized .tar.gz without extracting the entire tarball to disk? Essentially I need to get inside large tar.gz files over the network and extract 1 small text file. It seems somewhat over-the-top to pull and extract the tarball to disk, then pull the file out, then delete everything else. Also I'm going to be doing this recursively (e.g. package dependencies, each text file points to more tar.gz's), so the less network traffic and cpu cycles I can get away with, the better.
How to delete a folder or a file from usr/bin in linux/fedora
location: linuxexchange.com - date: January 1, 1970
I am using fedora ,
Unfortunately i had downloaded a package(for example 'selenium' or 'chrome') in the bin folder.
But i don't want that package in the bin folder, i want to remove it from the folder, i am unable do it manually as well as from the the terminal, so can anyone let me know how to delete a package from bin folder.
Actually i am trying to download a package as below from terminal
svn checkout http://selenium.googlecode.com/svn/trunk/ selenium-
read-only
But i didn't see my path in terminal when i am downloading i.e., usr/bin , so the package has been downloaded in bin folder now.
Please help me out through this.
Deleting columns from a file with awk or from command line on linux
location: linuxexchange.com - date: August 12, 2015
How can I delete some columns from a tab separated fields file with awk?
c1 c2 c3 ..... c60
For example, delete columns between 3 and 29 .
Remove New Line or Carriage return from Text File
location: linuxquestions.com - date: September 28, 2007
I have been running a very successful script removing URLs (grep and cut) from emails from my ebay favorites. In the last week or so the width of the emails that I have been receiving has narrowed to the extent that the URL now falls over 2 lines:
Item title:=09Dragon 1/6 Scale MODERN British SA80 Rifle MDRW0020
Item URL: http://cgi.ebay.co.uk/ws/eBayISAPI.d...m=3D130156919=
207&ssPageName=3DADME:B:SS:UK:1
Buy It Now price: =A36.99
Postage: +=A31.69
End time: 04-Oct-07 21:58 BST
The current script just pulls off the 1st line and the subsequent wget errors out.
I have tried awk, sed and tr in an attempt to remove the = sign and then the NL or CR. The = signs is easy but I am not having any luck joining the two lines up. I'm guessing that it is just an NL or CR. In vi or gedit it is not a problem to remove the NL or CR.
Any pointers please.
DIMonS
Which command can extract just number from a line or text file?
location: linuxquestions.com - date: July 9, 2013
Hi people,
I'm using du command:
du folder_name
and that gives me the result, for example:
8 folder_name
I wonder- how can I get just that 8 (that number) without the name of folder next to it?
(I want to do that because I want to assign that value to a variable in a script.)
Or if I write the result of command in a text file:
du folder_name > some_file, how can I get that number (in this case 8)from that file?
installing from tar file
location: ubuntuforums.com - date: April 12, 2013
Greetings to all.
I recently downloaded a Warzone 2100 game.
It is a tar.xz file. I have extracted the files but
do not know how to install. Need help.
Thank you for your time.
tar: how to extract only one directory from a backup
location: linuxquestions.com - date: January 29, 2007
Hi.
I've got a 5 Gb backup.tar.gz file. I want to extract only one directory from it (it contains +100 directories) but I don't find the right option on 'tar' command?
Any suggestion?
please wait...
Page: 1 2 3 4 5 6 7 8 9 10