Active Topics

 


Reply
Thread Tools
Posts: 90 | Thanked: 29 times | Joined on Oct 2009 @ Helsinki
#1
Hey guys...

I used 7z without being too knowledgeable on how to use it and accidentally unzipped a file to to /home/user and now I have no idea how access it through x terminal or anything else... Could someone please instruct me how to get the file deleted?

Thanks
 
Posts: 726 | Thanked: 345 times | Joined on Apr 2010 @ Sweden
#2
If you open the XTerminal, you're in /home/user. To see all files do
Code:
ls -al
To remove a specific file do
Code:
rm <filename>
without the brackets.
 

The Following User Says Thank You to Joorin For This Useful Post:
Posts: 43 | Thanked: 4 times | Joined on Mar 2010 @ Czech
#3
Download from extras-devel mc(Midnight Commander)
Type to x term sudo gainroot, then type mc and you can get into home/user
 
Posts: 90 | Thanked: 29 times | Joined on Oct 2009 @ Helsinki
#4
Thanks!

=)
 
Posts: 86 | Thanked: 199 times | Joined on Apr 2010
#5
Be aware that rm (short for ReMove, makes it easier to remember) comes with the safety off:

- You will not be prevented from deleting important files if you have the filesystem permissions.
- There is no garbage can, once it's deleted it can't be easily recovered, if at all.
- Be careful if the filename includes spaces of special characters especially "*". If you try to delete a file named "copy of important.txt" you'll easily end up trying to delete three files, called "copy" "of" and "important.txt" and it will delete "important.txt" even if it can't find the others.
 
Posts: 486 | Thanked: 251 times | Joined on Oct 2009
#6
Originally Posted by Vaskinn View Post
Be aware that rm (short for ReMove, makes it easier to remember) comes with the safety off:

- You will not be prevented from deleting important files if you have the filesystem permissions.
- There is no garbage can, once it's deleted it can't be easily recovered, if at all.
- Be careful if the filename includes spaces of special characters especially "*". If you try to delete a file named "copy of important.txt" you'll easily end up trying to delete three files, called "copy" "of" and "important.txt" and it will delete "important.txt" even if it can't find the others.
Which is just one of the reasons why special characters in filenames, especially delimiters such as white space, is a very bad idea.

Others are that the output of ls is messed up and various legacy scripts get broken, and new scripts by new programmers who have not yet learned all the ins and outs of programming.
__________________
The Mini-USB plug is an improvement over both the Type B plug and the Micro-B plug.
 
Reply


 
Forum Jump


All times are GMT. The time now is 02:20.