Improving work efficiency in UNIX command line

If you find yourself confused with distinguishing directory & file listing in UNIX, you're not alone. I remember when I first installed of Redhat 5.2 in 1998, I got confused with distinguishing file and directory after ls command. It took me a while to find out that the good news is: it is configurable with color-coded directory listing for easier reading and usability if you're a heavy command line user. The second thing is finding where exactly I am located in the current directory without typing pwd all the time. OS X Terminal with a cool BASH promptSo here's a little step that you can to do to improve your working efficiency in UNIX command line:
  1. Edit /etc/bashrc and add alias ls="ls -laFG" to make directory listing colored
  2. For the command prompt, add the following command: if [ -n "$PS1" ]; then PS1='nu@e[31;1m[w]33[0mn$ '; fi
Category:  Apple OS X

Latest

DirectAdmin - error when compiling Exim 4.98 on Oracle Linux 8

17.Apr.2025
I was trying to upgrade Exim to 4.98 from 4.97 (with a standard "da build exim" command), and someh...

VirtualBox error NS_ERROR_INVALID_ARG (0X80070057) when adding an existing virtual machine

1.Oct.2024
If you've ever encountered the following error when adding an existing VM to your host:   ...

Tik Tok algorithm is interesting

17.Apr.2024
I don't know how Tik Tok does it and honestly I don't know how its algorithm works. It can't be alg...

How to upgrade Gitlab safely with zero downtime

30.Mar.2024
GitLab is a complex piece of software. If you are planning on upgrading your self-hosted GitLab mac...

How to reduce Proxmox VE guest machine backup size

30.Mar.2024
To reduce a guest machine before you perform a backup, first set the discard flag on the guest mach...