User Tools

Site Tools


bash_profile

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
bash_profile [2026/08/10 19:37] – stevebash_profile [2026/11/02 19:49] (current) – steve
Line 76: Line 76:
 fi fi
  
-alias ls='ls --time-style="+%Y-%m-%d+%H:%M:%S"'+alias ls='/usr/bin/ls --time-style="+%Y-%m-%d+%H:%M:%S"'
 alias ll='ls -l' alias ll='ls -l'
 alias l='ls -altr' alias l='ls -altr'
 alias Rel='cat /etc/*ease | grep PRETTY | cut -d "=" -f 2' alias Rel='cat /etc/*ease | grep PRETTY | cut -d "=" -f 2'
 alias Diary='echo $(date +"%F+%R") : "${1}" >> ~/.history/$(hostname -s)_Diary' alias Diary='echo $(date +"%F+%R") : "${1}" >> ~/.history/$(hostname -s)_Diary'
-alias Disks='lsblk -i -f -o type,size,fstype,name,mountpoint'+alias Disks='lsblk -i -f -o type,size,fsavail,fstype,name,mountpoint'
 alias IP='ip a | grep -E "inet\ |inet6\ "' alias IP='ip a | grep -E "inet\ |inet6\ "'
 alias Free='df -lBG --output=source,fstype,itotal,iused,ipcent,size,used,pcent,target -h | grep --color=never -E "^/|^Filesystem"' alias Free='df -lBG --output=source,fstype,itotal,iused,ipcent,size,used,pcent,target -h | grep --color=never -E "^/|^Filesystem"'
Line 93: Line 93:
 alias Who='for User in $(last -Fw | grep -Ev "reboot|root|wtmp|runlevel|shutdown|^$" | cut -d " " -f1 | sort | uniq) ; do getent passwd ${User}; done | cut -d : -f 1,5,7' alias Who='for User in $(last -Fw | grep -Ev "reboot|root|wtmp|runlevel|shutdown|^$" | cut -d " " -f1 | sort | uniq) ; do getent passwd ${User}; done | cut -d : -f 1,5,7'
 alias Wttr='curl wttr.in/45103' alias Wttr='curl wttr.in/45103'
 +
 +rdp(){
 +        xfreerdp /cert:ignore /w:1800 /h:768 /d:PLM /u:stejon0jadmin /v:$1
 +        }
  
 Rel=$(cat /etc/os-release | grep PRETTY | cut -d "=" -f 2) Rel=$(cat /etc/os-release | grep PRETTY | cut -d "=" -f 2)
Line 100: Line 104:
 if [ -z "${Platform}" ] ; then if [ -z "${Platform}" ] ; then
         Platform=$(dmesg | grep -Ei 'DMI:.*' | cut -d ':' -f2)         Platform=$(dmesg | grep -Ei 'DMI:.*' | cut -d ':' -f2)
-fi +        fi 
- +        if [ -z "${Platform}" ] ; then
-if [ -z "${Platform}" ] ; then+
         Platform=$(hostnamectl | grep -i 'Hardware Model:' | cut -d: -f2-)         Platform=$(hostnamectl | grep -i 'Hardware Model:' | cut -d: -f2-)
 fi fi
bash_profile.txt · Last modified: by steve