Skip to main content

Questions tagged [delete]

-5 votes
1 answer
64 views

I'm trying to delete "Install macOS Mojave.app" from my Mac using the terminal command sudo rm -r or rm -rf, but it reports root error/illegal option/directory permission restricted, etc. ...
Alberto Pietrogrande's user avatar
-4 votes
6 answers
268 views

I have a file (FILE1) with some repeated sections as below (example): LINE 1 ABCD LINE 2 EFGA LINE 3 HCJK REMOVE LINE11 REMOVE LINE12 REMOVE LINE13 LINE 4 ABCDH LINE 5 EFGAG LINE 6 HCJKD REMOVE ...
Pratap's user avatar
  • 45
6 votes
2 answers
1k views

Today I downloaded a large file using wget, but I accidentally deleted it before it had finished downloading. However wget continued to download the file until it had finished, but there was no file ...
EmmaV's user avatar
  • 4,443
0 votes
0 answers
102 views

I am working on a ext4 file-system tool that aims to delete files such that they are not recoverable later on. My goal is to clear the inode metadata of a deleted file, but despite my efforts, the ...
Dhruv's user avatar
  • 1
0 votes
1 answer
136 views

I am working through a tutorial - The Linux Command Line for Beginners - and I want to delete my work so far and start over. I have a directory called tmp within the root directory which has a solid ...
Pete Sweet's user avatar
3 votes
3 answers
299 views

I need to delete files from a unix directory having patterns like 'bkp', 'backup', 'bak'. Basically I want to delete all the backup files. Files in the directory: A001.txt_bkp A001.txt A002.csv_backup ...
Mini's user avatar
  • 41
0 votes
1 answer
154 views

I've found similar questions being answered, where the find command encounters errors deleting files. However, the most similar question with an answer on Stack Exchange is regarding the find -type d -...
Mory's user avatar
  • 1
0 votes
2 answers
335 views

On macOS, there is a hidden file .DS_Store in some directories (well, in most of them). The problem with .DS_Store files is that rmdir and find . -depth 1 -type d -empty -print -delete don't delete ...
jsx97's user avatar
  • 1,397
1 vote
1 answer
1k views

I have a root directory: /opt/abc/logs/EXPORT inside of that directory, I have 17 other directories /opt/abc/logs/EXPORT/1 /opt/abc/logs/EXPORT/2 /opt/abc/logs/EXPORT/etc /opt/abc/logs/EXPORT/17 ...
johnfli's user avatar
  • 13
0 votes
0 answers
110 views

I am doing incremental backup according to the following example found there: https://linuxconfig.org/how-to-create-incremental-backups-using-rsync-on-linux #!/bin/bash # A script to perform ...
ecjb's user avatar
  • 495
0 votes
2 answers
154 views

I need a command how I can delete files from a folder with specific date. Like I want to delete files before 20 April from a folder on /home/FTP and file types are mp4.
White hat Mahmud's user avatar
6 votes
1 answer
46k views

What are some generic ways to free up lots of storage space without deleting personal files? I'm doing a distro upgrade (Debian11->12) and it needs lots of disk space on the root partition / which ...
mYnDstrEAm's user avatar
  • 4,980
1 vote
1 answer
156 views

After upgrading to Debian 12 with KDE multiple issues appeared. The following was the most problematic: A database-wal file with a size of multiple GB appeared and I had to delete it like so rm ~/....
mYnDstrEAm's user avatar
  • 4,980
1 vote
2 answers
508 views

I want to delete a directory with its contents recursively, and then re-create it with the same name and permissions. That directory may or may not be created or owned by me earlier before delete, but ...
Vicky Dev's user avatar
  • 259
-1 votes
1 answer
167 views

I am aware of find -mtime +x -delete, but how do I use it - or use it in a script - in order to delete all the "old stuff" (including hidden files) ? Eg, if I have a dir target_dir: delete ...
Antonello's user avatar
  • 1,073

15 30 50 per page
1
2 3 4 5
19