What do you want to save?
Add Code snippet
New code examples
-
-
Shell/Bash 2022-03-01 08:05:03
dir files windows
# For finding file use dir followed by string matching file name or regex # pattern and add "/s" for searching recursively in subfolders: dir /s "regex_or_file_name" # For finding file contained in a searched directory use "/b&quo... Add solution -
Shell/Bash 2022-01-26 08:36:35
dir sort by
dir *.txt *.doc # filter by extension (both doc and txt) dir /a:-d # files only (no subfolders) dir /s # current directory and subfolders content dir /s /a:-d # files only (including subfolders) dir > myfile.txt # stored in myfile.txt (dir /s &g... Add solution -
Other 2021-11-20 20:59:17
remove non empty directory windows
RMDIR /S path/to/directory Add solution -
Shell/Bash 2021-11-13 02:14:14
dir in file txt
dir *.txt *.doc # filter by extension (both doc and txt) dir /a:-d # files only (no subfolders) dir /s # current directory and subfolders content dir /s /a:-d # files only (including subfolders) dir > myfile.txt # stored in myfile.txt (dir /s &g... Add solution -
Shell/Bash 2021-11-11 13:24:12
rmdir command
#usage: rmdir <dir> #it removes <dir> #but if it isnt empty it will not work #so do: rmdir /S <dir> #--ignore-fail-on-non-empty for linux #to remove confirmation rmdir /Q <dir> #it is abbreviated to rd in cmd(windows) like all comm... Add solution -
Shell/Bash 2021-11-09 16:23:14
find directory in windows
# For finding file use dir followed by string matching file name or regex # pattern and add "/s" for searching recursively in subfolders: dir /s "regex_or_file_name" # For finding file contained in a searched directory use "/b&quo... Add solution -
Shell/Bash 2021-11-06 01:39:11
find linux
Extremely useful command!! In Mac and Linux: Define directory where to search as "." for current directory and then specify the name or regex of file or folder to find. find . -name "foo*" In Windows: Define "/s" for a re... Add solution