Reply
Thread Tools
Posts: 9 | Thanked: 2 times | Joined on Mar 2009 @ California
#1
linux is so frustrating. after many hours of trying to figure this out, i'm posting this. any help is much appreciated.

1) i accidentally downloaded something into the .root folder. i'm not able to delete the file using "rm filename" and yes, i am logged in as root.

2) i can't extract a tar that i downloaded. i'm in the correct directory. when i do "tar zxvf filename.tar.gz" it says there is no such file or directory. but that is wrong because if i do "ls" it is listed.
 
Posts: 106 | Thanked: 26 times | Joined on Aug 2008
#2
Originally Posted by magicmt View Post
linux is so frustrating. after many hours of trying to figure this out, i'm posting this. any help is much appreciated.

1) i accidentally downloaded something into the .root folder. i'm not able to delete the file using "rm filename" and yes, i am logged in as root.

2) i can't extract a tar that i downloaded. i'm in the correct directory. when i do "tar zxvf filename.tar.gz" it says there is no such file or directory. but that is wrong because if i do "ls" it is listed.
1) try sudo rm filename?

2) tar -zxvf filename.tar.gz
you need a "-" for options
 

The Following User Says Thank You to bigr3dd0g For This Useful Post:
Johnx's Avatar
Posts: 643 | Thanked: 628 times | Joined on Mar 2007 @ Seattle (or thereabouts)
#3
Also be sure to be careful since UPPERcase and lowercase matter. Also, what does it say when you try to delete the file?
 

The Following User Says Thank You to Johnx For This Useful Post:
Posts: 106 | Thanked: 26 times | Joined on Aug 2008
#4
Originally Posted by Johnx View Post
Also be sure to be careful since UPPERcase and lowercase matter. Also, what does it say when you try to delete the file?
telling us the error message you receive will help us to help you (so we know what's wrong)
 
Posts: 9 | Thanked: 2 times | Joined on Mar 2009 @ California
#5
thanks guys. this is embarassing, user error i was missing a period in the file name in both cases. but i didn't know that i needed the dash in "tar -zxvf" though. i am following the directions here for hamachi and i guess he left it out: http://www.internettablettalk.com/fo...ad.php?t=17955

thanks again
 
Johnx's Avatar
Posts: 643 | Thanked: 628 times | Joined on Mar 2007 @ Seattle (or thereabouts)
#6
Usually, with the tar command (and pretty much only with the tar command) you can leave out the dash (-) for options. It's some historical thing. It's probably best to get in the habit of including the - since most other commands do need a - before options.
 

The Following User Says Thank You to Johnx For This Useful Post:
Posts: 106 | Thanked: 26 times | Joined on Aug 2008
#7
usually it's easier to just copy and paste the file name whenever you're doing something in the terminal. don't have to type it all out either
 
pycage's Avatar
Posts: 3,404 | Thanked: 4,474 times | Joined on Oct 2005 @ Germany
#8
You can type a few letters of filenames, and then press the TAB key to get auto-completion.
This saves a lot of typing and time.

The on-screen keyboard has a TAB key, but on the N810's hardware keyboard, you can press [Ctrl] + [I] instead. [Ctrl] + [I] is the same as TAB.
 

The Following 2 Users Say Thank You to pycage For This Useful Post:
pelago's Avatar
Posts: 2,121 | Thanked: 1,540 times | Joined on Mar 2008 @ Oxford, UK
#9
The toolbar in X Terminal has Tab (and Esc, PgUp, PgDn and Ctrl (for some reason)).
 
Reply


 
Forum Jump


All times are GMT. The time now is 12:48.