Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

linux list directories

ls -d */
Comment

get list of directories bash

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

List only directories in Linux

$ ls -d */
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 :: linux delete empty line "tr -d" 
Shell :: ubuntu watch log file command 
Shell :: Update flutter command. 
Shell :: activate virtual environment ubuntu 
Shell :: yarn frozen lockfile 
Shell :: Installl adb to linux 
Shell :: vestacp wordpress permissions 
Shell :: last return code linux 
Shell :: convert pem to crt 
Shell :: where skype saves file in linux 
Shell :: prevent always typing sudo 
Shell :: discord on linux 
Shell :: get jq command 
Shell :: ngx-bootstrap npm 
Shell :: Criar um dispositivo gerido por cores 
Shell :: what com port linux 
Shell :: mysql inline password command line 
Shell :: bring job number to foreground linux 
Shell :: kill apache 
Shell :: posh git install windows 
Shell :: php enable module 
Shell :: linux start simple http server 
Shell :: svn show revision of remote url 
Shell :: install android studio on linux mint 
Shell :: has_add_permission() takes 2 positional arguments but 3 were given 
Shell :: linux command after create folder cd it 
Shell :: jupyter notebook allow root 
Shell :: git store username and password 
Shell :: "git reset –- soft head^" 
Shell :: cannot delete /var/lib/php/sessions/ 
ADD CONTENT
Topic
Content
Source link
Name
5+4 =