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/...
Anticipative asked 9/8, 2017 at 15:36

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...
Burnight asked 28/6, 2017 at 16:44

1

Solved

After my script finishes I can delete the file, but while it's running I can't touch it, even after an fclose(). Here is the code I'm trying to use: $Files = glob("$_SERVER[DOCUMENT_ROOT]/files/*...
Dermatosis asked 20/12, 2016 at 21:37

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...
Kruter asked 15/8, 2012 at 20:34

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...
Diplostemonous asked 9/4, 2012 at 14:19

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...
Seven asked 9/5, 2012 at 12:44

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 ...
Wehrmacht asked 8/4, 2011 at 4:18

3

I have unfortunately deleted some important files and folders using 'rm -R ' command in Linux server. Is there any way to recover?
Foppish asked 3/11, 2014 at 19:24

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...
Nuthatch asked 7/1, 2016 at 9:5

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...
Environs asked 20/12, 2015 at 23:33

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?
Anticosti asked 3/6, 2015 at 8:37

3

Solved

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

so I have looked at every single script on here regarding deleting directories older than 14 days. The Script I wrote works with files but for some reason it is not deleting the directories. So her...
Polonaise asked 18/12, 2014 at 19:29

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...
Coycoyle asked 27/12, 2011 at 7:39

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...
Corinthians asked 20/4, 2012 at 13:43

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...
Lonna asked 1/10, 2011 at 10:22

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...
Kosak asked 15/4, 2010 at 1:22

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?
Ruthy asked 12/8, 2012 at 19:7

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 ...
Bastille asked 26/2, 2014 at 17:1

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...
Vicinal asked 5/11, 2013 at 5:18

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 ...
Tonguing asked 22/1, 2014 at 7:56

© 2022 - 2024 — McMap. All rights reserved.