Linux CLI: rm
Loading...
1,040
Loading...
Uploader Comments (webholevids)
see all
All Comments (5)
-
If you press Ctrl+Alt+F1 you get a command line. Press Ctrl+Alt+F7 to get back to the GUI
Loading...
is there also a command to delete all files (in the directory) that ends with .txt?
23Vacuu 1 year ago
@23Vacuu yes, you use wild characters for that. If you want to delete all .txt files use *.text as your file name , the asterisk represents any number and any character. Another wild character is the question mark "?", this one represents only one character, so using myf?le.txt for example would delete any of these files "myfile.txt", "myfale.txt", "myfzle.txt", "myf8le.txt" etc, you can use as many ?'s as you want in a file name.
webholevids 1 year ago
@23Vacuu I meant use *.txt not *.text, sorry. Also, these don't just work with the rm command but also with any other.
webholevids 1 year ago