Skip to main content

Questions tagged [rm]

rm is the command to remove files

0 votes
3 answers
163 views

I understand that in unix systems symlinks can link to files and directories and are files themselves so if I want to remove a symlink I need to rm symlink without the trailing /. But they otherwise ...
Joshua's user avatar
  • 9
0 votes
1 answer
79 views

I am trying to create an alias for the rm command in the /root/.bashrc file on a VirtualBox Redhat VM (running RHEL 9). I cannot get it to work properly. This is an excerpt of my .bashrc file: alias ...
minionsaregreat's user avatar
-3 votes
2 answers
175 views

I have cron "clean up" some stuff overnight. A simple rm -f thisandthat. But if there is no file thisandthat, rm -f sends an e-mail to me at [email protected] - No such file or directory. I ...
user637's user avatar
0 votes
1 answer
98 views

After upgrading from SLES12 SP5 to SLES15 SP6 I noticed that the %clean phase of some RPM spec files fail for some strange reason when using rpmbuild -ba. The RPMs (SRPM, RPMs) are written correctly, ...
U. Windl's user avatar
  • 1,777
0 votes
1 answer
254 views

I was using FileZilla to try to transfer some files. I made one mouse-click in the wrong place and wound up deleting a directory with over 14,000 files that I very much did not want deleted. I'm sure ...
Steve Cohen's user avatar
7 votes
1 answer
2k views

I’m a new PhD student and I’m dealing with a serious issue. I tried to map a directory from Server A (/home/lab/Desktop) to Server B (/home/usr/labDesktop) because Server B has better computing power. ...
Andy Junghyun Kim's user avatar
0 votes
1 answer
151 views

The following script non-recursively deletes regular empty files, not including the dot ones, and then non-recursively deletes empty directories, not including the dot ones, and ignoring the presence ...
jsx97's user avatar
  • 1,397
0 votes
1 answer
95 views

I'm on ubuntu 22.04. I was there removing the files related to libcudnn. However, I thought i was CDing inside, but an enter later, I realized that I was on sudo rm -rfing there. So, I ended up ...
fandn's user avatar
  • 1
1 vote
3 answers
259 views

How to remove files which confirm to a certain number pattern I remove like this right now in MacOS, rm */sections.json.* */sections.json0* */sections.json1* all the way till 9
user352290's user avatar
-1 votes
1 answer
234 views

NOTE: DO NOT USE THIS COMMAND UNLESS YOU KNOW WHAT YOU'RE DOING From what I've find on the internet, the sudo rm -rf /* command wipes out everything in the linux system. If this command is run on WSL, ...
MrIzzat's user avatar
0 votes
0 answers
163 views

I got a case where I need to overwrite some file with another and noticed a very significant slowdown when using "mv -f" if the target already exists and is being read. More specifically, ...
Frederik's user avatar
1 vote
2 answers
118 views

The following commands behaves different between Linux and Mac: mkdir tmp ln -s tmp symlink rm -rf symlink/ On Linux, the content of tmp folder is deleted but the folder itself remains, while on Mac ...
Andrés Esguerra's user avatar
0 votes
1 answer
256 views

My ./imap directory contains two folders with names containing special characters : ‘No’$‘\351’‘.sbd’ ‘S’$‘\351’‘gol’$‘\350’‘ne.sbd’ (these are the full names with no other characters added). The ...
Josef's user avatar
  • 1
1 vote
1 answer
110 views

In the folder there are files with write permission and without it. I need to remove only files which have write permission. When I simply do rm * it prompts confirmation for every write-protected ...
Alex Anushat's user avatar
1 vote
3 answers
3k views

OS is Debian. I am running as root. Output of df -h /: Filesystem Size Used Avail Use% Mounted on /dev/sda3 99G 97G 0 100% / lsof shows /var/log/syslog file handle is open, but ...
cat pants's user avatar
  • 167

15 30 50 per page
1
2 3 4 5
57