home_server:home_server_setup:other_services:bash

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
home_server:home_server_setup:other_services:bash [2023-05-28 Sun wk21 16:05] baumkphome_server:home_server_setup:other_services:bash [2024-01-02 Tue wk01 21:44] (current) baumkp
Line 1: Line 1:
-{{tag> linux bash alias .bash_aliases configure configuration bashrc command script .bashrc history sudo visudo dimmer ps kill nightmode xrandr tar archive "default editor" editor}}+{{tag> linux bash alias tar .bash_aliases configure configuration bashrc command script .bashrc history sudo visudo dimmer ps kill nightmode xrandr tar archive "default editor" editor}}
 ======BASH Customisation====== ======BASH Customisation======
 The standard BASH colour configuration uses a blue colour for listing directories (ls) which is difficult to read on a black background. While this is the "standard colour", due to the impracticality I have decided to change it. The standard BASH colour configuration uses a blue colour for listing directories (ls) which is difficult to read on a black background. While this is the "standard colour", due to the impracticality I have decided to change it.
Line 10: Line 10:
  
 Add the following commands to ''vim ~/.bashrc'', the aliases can also be added to the separate file .bash_aliases, ''vim ~/.bash_aliases'': Add the following commands to ''vim ~/.bashrc'', the aliases can also be added to the separate file .bash_aliases, ''vim ~/.bash_aliases'':
-   *''alias ll=%%'ls -la --color=auto'%%''+   *''alias ll=%%'ls -lah --time-style=long-iso --color=auto'%%''
    *''alias lh=%%'ls -laL --color=auto'%%''    *''alias lh=%%'ls -laL --color=auto'%%''
    * key ''ls'' options :    * key ''ls'' options :
Line 21: Line 21:
        * ''-S'' : sort by file size, largest first        * ''-S'' : sort by file size, largest first
        * ''-t''  : sort by time        * ''-t''  : sort by time
 +       * ''%%--time-style%%'' : allows the displayed time sytle to be changed.
 +           * The standard output is a disgrace, North American mixed up! Aug 23 2022 or Jan 1 11:44 for nearer dates.
 +         * ''iso'' gives 2023-01-23 for more than a year past and 10-23 15:51 for less than a few months past, yuk!
 +         * ''long-iso'' always gives yyyy-mm-dd hh:mm, without a doubt the best format, clean and consistant!
 +         * ''full-iso'' is same as long-iso, except time time is to the nanosecond and local timezone delta is displayed 
 +         * The ''TIME_STYLE'' environment variable sets the default
 ++++An example alias file:| ++++An example alias file:|
 <code bash> <code bash>
  • /app/www/public/data/attic/home_server/home_server_setup/other_services/bash.1685261108.txt.gz
  • Last modified: 2023-05-28 Sun wk21 16:05
  • by baumkp