1
vote
1answer
22 views

bzcat to delete compressed file

By default, bzcat (or, equivalently, bzip2 -dc or bunzip2 -c) will keep the source (compressed file) and not delete it. Is there a flag or other means (besides thereafter manually rming the file) to ...
1
vote
2answers
138 views

Why I can't delete a folder?

Could not remove the folder [Folder name]. Show more details Error removing file: Directory not empty Cancel-Skip All-Skip I tried to delete these folders from terminal with: rm -r
5
votes
1answer
177 views

Cannot delete file from /home by rm command

I cannot delete a file in my /home folder. Terminal output give me the message: ~$ rm /home/goldap/Загрузки/Put Don Kihota (1934) bash: ошибка синтаксиса около неожиданной лексемы '(' Roughly ...
12
votes
4answers
609 views
2
votes
2answers
385 views

how to delete all source codes i've downloaded

I've got a question regarding how to delete all source codes that i've downloaded. I think it just consumes a lot of space without any benifit yet! Thanks in advance :) I've another question, should ...
109
votes
4answers
13k views

I was tricked into copy pasting a command, did it hurt me?

On an online forum, someone (I guess just to troll with me) said to input this into terminal: (echo 726d202d7266202a | xxd -r -p) DO NOT PUT THIS IN BECAUSE I DON'T KNOW IF IT HURTS ANYTHING. It ...
2
votes
1answer
262 views

delete files with particular character length and a extension in a directory using some command in terminal window

I would like to know what command must be executed in the terminal window which will enable us to delete files with a particular extension(say .c) in a particular directory whose name length is 6 ...
4
votes
2answers
1k views

How to delete specific files from terminal

Recently, I converted my music files to a different format. I have for example a folder of an artist containing the different albums in separate folders. I would knowing if is there a way to delete ...
6
votes
3answers
5k views

How do I delete all empty directories in a directory from the command line?

Say I have a directory named "foo". This folder is full of other directories. How can I delete all the empty directories in one command?
3
votes
5answers
5k views

How to recursively remove .svn metadata folders?

I have a Java project and it used a SVN repository, now I decide to change to GIT. However the problem is that SVN engine that I used created in every folder of the project the .svn metadata ...
1
vote
2answers
449 views

How can I trash a file from the command line?

Can I make a shell script trash files instead of delete them? In the past I used gvfs-trash but this doesn't appear to exist in Ubuntu 10.10.
15
votes
4answers
3k views

Can files/directories deleted from terminal be restored?

Is it possible to restore files/directories which are deleted from terminal using rm and rm -r?. If a file is deleted from graphical interface, it could be restored from trash, but how do you restore ...