rm Questions
2
Solved
I copied some files from a directory to directory using
hadoop distcp -Dmapreduce.job.queuename=adhoc /user/comverse/data/$CURRENT_DATE_NO_DASH_*/*rcr.gz /apps/hive/warehouse/arstel.db/fair_usage/...
1
Solved
I was working on my website under root and I commit the worst thing that a linux user can do : rm -R /* instead of rm -R ./*.
I've stopped the process when I saw that it was taking too long...
I ma...
1
Solved
1
When i today accessed my Ubuntu 16.04 server and wanted to remove the file "test2" it was simply not deleted!
I have used
rm test2
as well as
rm -f test2
but it still did not delete i...
Piccalilli asked 13/11, 2016 at 17:41
4
Solved
Questions
What is the difference between the rm -d and rm -R commands in Bash?
Which one should I use?
Details
According to the man page for the rm command:
rm -d attempts to remove director...
4
Solved
How can I remove an empty folder locally and also have that happen for other collaborators that share the remote via pull-push? I know that folders aren't 'tracked' in that sense by git but the que...
7
Solved
I have this list of files on a Linux server:
abc.log.2012-03-14
abc.log.2012-03-27
abc.log.2012-03-28
abc.log.2012-03-29
abc.log.2012-03-30
abc.log.2012-04-02
abc.log.2012-04-04
abc.log.2012-04-05...
5
Solved
I've so far figured out how to use find to recursively unzip all the files:
find . -depth -name `*.zip` -exec /usr/bin/unzip -n {} \;
But, I can't figure out how to remove the zip files one at ...
3
I have unfortunately deleted some important files and folders using 'rm -R ' command in Linux server.
Is there any way to recover?
8
Solved
How do I delete a certain file in linux if its size is 0. I want to execute this in an crontab without any extra script.
l filename.file | grep 5th-tab | not eq 0 | rm
Something like this?...
Awakening asked 29/3, 2011 at 16:39
3
Solved
How can I delete multiple files in Linux created at same date and time? How can I manage this without using date? The file have different names.
I have these .txt files:
-rw-r--r-- 1 root root 54...
1
Solved
i’m trying to remove all .dot files, except .git and all *.js except one exception.js, but i’m failing
install
git clone [email protected]:iamstarkov/rimraf-test.git
cd rimraf-test
test
n...
2
Solved
I'm writing a script that will move files into a .trash directory in a user's home folder. I want to add the ability to empty the trash directory by calling rm -rf /home/user/.trash/* using python'...
Cleres asked 13/8, 2015 at 0:58
1
Solved
I thought rm removes the files in alphabetically, but clearly it's not after my executation.
So, what 's the order of command rm executation?
3
Solved
How to enable confirmation alert when using 'rm' command to delete files / folders? [closed]
I have found that we cannot recover files/folders when deleted using rm command from here
But, is it possible to add a confirmation alert when using rm command in the terminal?
Melliemelliferous asked 13/5, 2015 at 7:55
2
3
I have a list of extensions:
avi,mkv,wmv,mp4,mp5,flv,M4V,mpeg,mov,m1v,m2v,3gp,avchd
I want to remove all files without the following extensions aswell as files without extension in a directory i...
6
I am trying to write maintainer scripts for debian package.
Assume that I have a directory structure as follows:
application/
----application/file1.txt
----application/file2.txt
----application/co...
Lysenko asked 8/8, 2014 at 7:10
6
Solved
I am using rm within a BASH script to delete many files. Sometimes the files are not present, so it reports many errors. I do not need this message. I have searched the man page for a command to ma...
4
Solved
I untarred something into a directory that already contained a lot of things. I wanted to untar into a separate directory instead. Now there are too many files to distinguish between. However the f...
4
Solved
From a terminal window:
When I use the rm command it can only remove files.
When I use the rmdir command it only removes empty folders.
If I have a directory nested with files and folders wi...
3
Solved
Say I have folders:
img1/
img2/
How do I delete those folders using regex from Linux terminal, that matches everything starts with img?
4
Solved
After a mistake in a script I ended up with a file whose name starts with a dash, -:
-myfile.txt
I tried so far:
rm -myfile.txt
rm: illegal option -- m
usage: rm [-f | -i] [-dPRrvW] file ...
5
I am trying to write a very simple Bash shell script that will cd in a specific directory, it will remove all files and directories except some few selected ones and then cd back to the original di...
1
Solved
I'm trying to remove all .html files from the directory generated and from all subfolders there but it needs to leave all other files and directories alone.
I tried going through folder by folder ...
© 2022 - 2024 — McMap. All rights reserved.