Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to create a text file list of the contents of a folder

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 > myfile.txt with subfolders)
dir /o:[sortorder] 	# example:  dir /o:-s    (sort by decreasing size)
  N : By name (alphabetic).
  S : By size (smallest first).
  E : By extension (alphabetic).
  D : By date/time (oldest first).
  - : Prefix to reverse order.
Comment

PREVIOUS NEXT
Code Example
Shell :: dir command list all files and subdirectories 
Shell :: move multiple files cmd 
Shell :: open rdp port windows 10 using command line 
Shell :: cat linux 
Shell :: jq command in linux 
Shell :: flask make how public 
Shell :: touch linux 
Shell :: git combine two branches into third 
Shell :: removing package using snap 
Shell :: mac make bootable usb 
Shell :: git bash command 
Shell :: admob expo 
Shell :: execute script in linux 
Shell :: printf linux 
Shell :: Syntax error: word unexpected (expecting "in") 
Shell :: installing nginx on docker container 
Shell :: install erlang 20 mac brew 
Shell :: set up vm arch 
Shell :: xrandr 1704x1000 
Shell :: powershell equivalent of rm 
Shell :: sed wrap each line in quotes 
Shell :: How can you install Flutter? 
Shell :: how to install lame linux 
Shell :: scan for unused ports linux 
Shell :: fatal: malformed object name HEAD 
Shell :: git by nouman 
Shell :: installing flow globally 
Shell :: phenix applyncs 
Shell :: debian buster add ip alias cli 
Shell :: boot camp black screen reboots 
ADD CONTENT
Topic
Content
Source link
Name
8+1 =