User Tools

Site Tools


ls

If you want to send us your comments, please do so. Thanks
More on comments


ls

exa is a modern replacement for ls

ls /mnt/path/

lists filenames without path

ls /mnt/path/*

lists filenames with full path

Times

atimels -luTime last accessed
ctimels -lcModification time
mtimels -l

Coloring

Coloring in ls is set to on with

ls --color=auto

This can be made permanent by adding

# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
  test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
  alias ls='ls --color=auto --group-directories-first'
fi

to ~/.bashrc . Directories will be shown first in the ls output due to the --group-directories-first option
The meaning of the colors can be found here: What causes this green background in ls output? and here: Where is color of ls command defined?


Main subjects on this wiki: Linux, Debian, HTML, Microcontrollers, Privacy

RSS
Disclaimer
Privacy statement
Bugs statement
Cookies
Copyright © : 2014 - 2024 Webevaluation.nl and the authors
Changes reserved.

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
ls.txt · Last modified: 17-05-2023 01:11 by wim