renatoheeb.com

GNU / Linux / Unix

Environment

whoami 
cat /etc/os-release
uname --help

Group

getent group #get-entries
cat /etc/group
groups $USER

Profile

the original rc affix and extension both meant run commands.

source

evolved into:

# In intelliJ/phpstorm change shell path to interactive
/bin/bash -i  # interactive shell (-i)
file about
/etc/profile system-wide startup file for bourne compatible shells
~./profile
~./bash_profile
~./bash_login

Mnemonic: A Pro-File is used sparingly to modify your environment and start your ignition switch, Bashrc is a splash some people spray all over your dash.

System maintenance & Package manager

sudo apt update && sudo apt full-upgrade
$ sudo do-release-upgrade

Shell

man bash
shopt login_shell #login_shell off

Shell optional behavior

scp

scp .\Downloads\JetBrainsGateway-2024.2.3.tar.gz heebinho@powercube:/home/heebinho/JetBrainsGateway.tar.gz


gnu Bash manual