Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

get list of directories bash

for d in */ ; do
    echo "$d"
done
Comment

List only directories in Linux

$ ls -d */
Comment

list only directories in bash

ls -d */

# * matches everthing
# / restrics * "everything" to "subdirectories"
Comment

bash find only list directories

find . -type d -iname "<your regex>" -printf '%f
'
Comment

list directories linux

# Linux shell command that lists directory contents of files and directories

ls -a	list all files including hidden file starting with '.'
ls --color	colored list [=always/never/auto]
ls -d	list directories - with ' */'
ls -F	add one char of */=>@| to enteries
ls -i	list file's inode index number
ls -l	list with long format - show permissions
ls -la	list long format including hidden files
ls -lh	list long format with readable file size
ls -ls	list with long format with file size
ls -r	list in reverse order
ls -R	list recursively directory tree
ls -s	list file size
ls -S	sort by file size
ls -t	sort by time & date
ls -X	sort by extension name
Comment

PREVIOUS NEXT
Code Example
Shell :: aab to apk 
Shell :: install conan 
Shell :: install get cli 
Shell :: yum downgrade php 
Shell :: get path composer 
Shell :: prevent pushing to master github 
Shell :: whats home directory variable linux 
Shell :: git ignore for dart 
Shell :: install gradle ubuntu 20.04 
Shell :: undo merge 
Shell :: git CAfile: none CRLfile: none 
Shell :: mongodb recherche like 
Shell :: git current branch 
Shell :: search git history 
Shell :: redis remove key 
Shell :: how to set to default terminal in ubunty 
Shell :: sed replace number 
Shell :: how to reset and change remote url in git 
Shell :: whereis alpine 
Shell :: how to untrack a file in git 
Shell :: push to github 
Shell :: GitHubDesktop-linux-2.5.4-linux1.deb 
Shell :: install docker desktop on server 2019 
Shell :: Install specific node version and update node to lastest stable version 
Shell :: bash split a word into characters 
Shell :: aws cli create ecr repository if not exists 
Shell :: webpack install webpack config 
Shell :: add ssh key linux 
Shell :: install drush on ubuntu 18.04 
Shell :: matplotlib log colorbar 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =