Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash list all files in directory and subdirectories

# Bash-specific

# syntax 
ls -R <file-or-directory-to-find>

# example
ls -R *hotographi*
Comment

windows list all files in subdirectories

tree /f
Comment

list all files in a directory and subdirectory linux

find . -type f -follow -print
Comment

cmd dir all files subfolders

dir /s
Comment

dir list all files in subdirectories

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 :: install kubernetes ubuntu 20.04 
Shell :: minio client docker 
Shell :: GIT: List all currently configured remotes 
Shell :: linux install software without sudo 
Shell :: command to check the amount of disk space used 
Shell :: Create A Shared Folder On Linux With Samba 
Shell :: batch script comment 
Shell :: force push to remote branch 
Shell :: le wagon setup 
Shell :: git bash 
Shell :: curl with regex 
Shell :: git cherrypick 
Shell :: git checkout master 
Shell :: do command in a command linux 
Shell :: npm install firebase @angular/fire 
Shell :: fslmaths 
Shell :: Stderr: VBoxManage.exe: error: UUID 
Shell :: bash reading file wrong 
Shell :: linkerd kubernetes 
Shell :: mac noide folder 
Shell :: zsh command not found ntp for macos 
Shell :: bash source in lxc 
Shell :: @ module not install webstorm vue 
Shell :: printing in capital letter linux 
Shell :: how to install nipe 
Shell :: SearchMonkey For Linux 
Shell :: cmd to remove temporary files in win 10 
Shell :: room showing data after reinstall the app problem 
Shell :: Tech-Chat github karshunibremen 
Shell :: pip install qiskit does not work 
ADD CONTENT
Topic
Content
Source link
Name
7+3 =