What bash aliases do you always add?

The Raspberry Pi is a series of credit card-sized single-board computers developed in the United Kingdom by the Raspberry Pi Foundation to promote the teaching of basic computer science in schools and developing countries.

Post Reply
User avatar
/RaspberryPi
Corporate
Posts: 2449
Joined: Wed Jun 05, 2019 1:29 am

What bash aliases do you always add?

Post by /RaspberryPi »

For those new to the Pi and wanting to save a few keystrokes look to use the .bash_aliases file and create your own command line shortcuts.
I have three on every machine that gets used a great deal:
alias 90="logout" alias lsl="ls -l" alias lal="ls -al" One other that gets used if I am pushing disk / SD-Card use on some of the Pi boards is:
alias diskuse="echo 'Device Size Used Free Mount Point' && df -h --output=source,size,used,avail,target | grep dev/root | sort" You may need to tweak the echo / grep to select the partitions / mount points you are interested in.
If you are overclocking / stress testing then I created a 'temp' command:
alias temp="sudo vcgencmd measure_temp" 90 by the way dates back to the AS/400 operating system and was the standard menu option to log-out 35+ years ago - some habits are ingrained :-)

submitted by /u/ADB-UK
[link] [comments]

More...
Post Reply

Return to “Raspberry Pi Forum”