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 Jan 6 17:28 file1.txt
-rw-r--r-- 1 root root 33 Jan 6 17:28 file2.txt
-rw-r--r-- 1 root root 24 Jan 6 18:05 file3.txt
-rw-r--r-- 1 root root 0 Jan 6 17:28 file4.txt
-rw-r--r-- 1 root root 0 Jan 6 17:28 file5.txt
How can I delete all the files with one command?
file1.txt'? rm: remove regular file
file2.txt'? rm: remove regular filefile3.txt'? rm: remove regular empty file
file4.txt'? rm: remove regular empty file `file5.txt'? is there any attribute or solution to this?? i mean why it asked for each n every time it will cost to much time for processing delete operation on huge amount of files as it will asks every time to remove file is there any equivalent solution?? – Nuthatch