linux delete all files in current directory site:stackoverflow.com - Axtarish в Google
15 февр. 2009 г. · Under bash with GNU tools, I would do it like that (should be secure in most cases): rm -rf -- "$(pwd -P)" && cd .
10 окт. 2011 г. · ... delete all files and symbolic links in the current directory: find . -type f -delete find . -type l -delete. As one command, the following ...
3 авг. 2013 г. · This command will show any PNG files in the current directory and any subdirectory: $ find -exec bash -c "file -b --mime-type {} | grep -q ^ ...
5 мая 2012 г. · Without the -r , the rm command won't touch sub-directories or the files they contain. This will only remove the files in folder and not the sub ...
22 мая 2013 г. · Use the following command: rm -f XYZ/*. If you want to delete also subdirectories, use: rm -fr XYZ/*. If you also want to delete the ...
2 июл. 2019 г. · Per the docs, providing the directory name will only remove the files in that directory. git rm ./*.txt. Providing the directory name, ...
11 июл. 2012 г. · I'm using rm -r * but it's asking for a confirmation on each file deletion. To stop this it's rm -rf * yes? Trying to delete all from current ...
31 дек. 2013 г. · ... (removing all files below the current directory containing car in their filename): find . -print0 | grep --null-data car | xargs -0 rm --. Why ...
8 апр. 2011 г. · I'm trying to keep a directory full of log files manageable. Nightly, I want to delete all but the 10 most recent. How can I do this in a single ...
23 нояб. 2010 г. · Try this: find . -mindepth 1 -maxdepth 1 ! -name '*.jar' | sort. If you really want to delete all the files in its output, then just do
Novbeti >

 -  - 
Axtarisha Qayit
Anarim.Az


Anarim.Az

Sayt Rehberliyi ile Elaqe

Saytdan Istifade Qaydalari

Anarim.Az 2004-2023