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

list all files in a directory and subdirectory linux

find . -type f -follow -print
Comment

dir command list all files and 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 :: supertest example 
Shell :: how to update your local repository 
Shell :: Regex: Match Last Occurrence aka Negative Lookbehind 
Shell :: Installing Docker Engine in Linux/Ubuntu 
Shell :: aos animate install 
Shell :: destroy linux with one command 
Shell :: add changes from different branch 
Shell :: ffmpeg add audio to image 
Shell :: multiple ssh key 
Shell :: how to check requirements.txt was installed correctly 
Shell :: github add all files/directories and subdirectories 
Shell :: npm install -g express 
Shell :: read all test in golang 
Shell :: add user centos 7 sudo 
Shell :: create new file in terminal 
Shell :: linux change user password 
Shell :: How do I undo the most recent local commits in Git? 
Shell :: ubuntu 18 does not connect to bluetooth earphones 
Shell :: ls permission 
Shell :: linux curl upload file ftp 
Shell :: open file explorer from cmd 
Shell :: git fetch upstream 
Shell :: download office 365 for ubuntu 
Shell :: install composer phar 
Shell :: install bootstrap vue 
Shell :: cuda 10 install pytorch 
Shell :: linux make symlink 
Shell :: setup git on windows 
Shell :: No module named ipykernel colab conda 
Shell :: copy everything vim 
ADD CONTENT
Topic
Content
Source link
Name
3+7 =