LINUX LIFE
========>AQUÍ<========
========>Folder<========
PS1='\[\033[1;36m\]\u\[\033[1;31m\]@\[\033[1;32m\]\h:\[\033[1;35m\]\w\[\033[1;31m\]\$\[\033[0m\] '
#Aliases for easy edition easy access
alias add='nano $HOME/.bashrc'
alias b='source $HOME/.bashrc'
alias res='cat $HOME/.bashrc >> $HOME/Documents/respaldo.txt' #Creates a backup of bashrc with the name respaldo file
alias f='sudo find -name'
alias h='history | grep'
alias a='alias | grep'
alias p='PS1=$' #Shorten bash prompt
#Converters
alias imageloop='for f in ./*.JPG ; do convert "$f" -resize 1200x900 "${f%.jpg}-small.jpg" ; done' #you need Imagemagick
#Crontab
alias cr='sudo crontab -u root -e'
#Installers/Uninstall/Updaters/Clean
alias c='sudo apt clean && sudo apt autoclean && sudo apt autoremove'
alias i='sudo apt install'
alias iy='sudo apt install -y'
alias ideb='sudo dpkg -i *.deb'
alias isnap='sudo snap install'
alias isnapy='yes | sudo snap install'
alias isnapall='sudo apt install snapd && sudo snap install core && snap install snap-store'
alias k='sudo apt --with-new-pkgs upgrade' #When you get the message:"The following packages have been kept back:"
alias r='sudo apt remove --purge'
alias sysi='sudo apt reinstall systemd'
alias updater='sudo apt update && sudo apt upgrade && sudo apt dist-upgrade && sudo snap refresh && killall snap-store && pkill update-manager'
#Launchers or commands used for keyboard shortcuts
#caffeine-indicator gedit ¿gnome-text-editor?
alias chrome='google-chrome --incognito http://www.google.com'
alias mozilla='firefox --private-window http://www.google.com'
#List_Show
alias climah='curl wttr.in/Hermosillo?M' #Show
alias climaf='curl wttr.in/Temple+Terrace' #the
alias climac='curl wttr.in/Temple+Terrace?M' #weather
alias disk='sudo fdisk -l' #Detailed List of partitions and media
alias diskpart='sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL' #Partitions, size, file type, etc
alias extip='curl icanhazip.com'
alias extip1="sudo lynx -dump http://whatismyip.akamai.com | awk '{print $1}'"
alias listusers='cut -d: -f1,3 /etc/passwd | egrep ':[0-9]{4}$' | cut -d: -f1' #List the human users on the system
alias lsa='ls -alhS'
alias kernel='dpkg --list | grep -E -i --color '\''linux-image|linux-headers'\''' #Installed kernel versions
alias pyv='python3 --version' #Version of python
alias quien='uname -r && date && curl icanhazip.com && hostname -I && who && hostnamectl'
alias sys='systemctl list-units --type=service --state=running'
alias s='curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python3 -'
alias sp='speedtest-cli --secure'
alias tm='sudo dmidecode -t 2' #Bios/Motherboard version
alias t='timedatectl'
alias v='cat /etc/os-release && cat /proc/version' #Longlist ubuntu version
#yt-dlp
alias ytbest='yt-dlp -f bv*+ba' #Incomplete command. Needs url
alias ytupdate='pip install --upgrade yt-dlp' #Incomplete command. Needs url
alias ytmp3='yt-dlp -x --audio-format mp3' #Incomplete command. Needs url
alias ytwav='yt-dlp -x --audio-format wav' #Incomplete command. Needs url
#killall snap-store && sudo snap switch snap-store --channel=latest/stable/ubuntu-23.10 && sudo snap refresh
#Aliases for easy edition easy access
alias add='nano $HOME/.bashrc'
alias b='source $HOME/.bashrc'
alias res='cat $HOME/.bashrc >> $HOME/Documents/respaldo.txt' #Creates a backup of bashrc with the name respaldo file
alias f='sudo find -name'
alias h='history | grep'
alias a='alias | grep'
alias p='PS1=$' #Shorten bash prompt
#Converters
alias imageloop='for f in ./*.JPG ; do convert "$f" -resize 1200x900 "${f%.jpg}-small.jpg" ; done' #you need Imagemagick
#Crontab
alias cr='sudo crontab -u root -e'
#Installers/Uninstall/Updaters/Clean
alias c='sudo apt clean && sudo apt autoclean && sudo apt autoremove'
alias i='sudo apt install'
alias iy='sudo apt install -y'
alias ideb='sudo dpkg -i *.deb'
alias isnap='sudo snap install'
alias isnapy='yes | sudo snap install'
alias isnapall='sudo apt install snapd && sudo snap install core && snap install snap-store'
alias k='sudo apt --with-new-pkgs upgrade' #When you get the message:"The following packages have been kept back:"
alias r='sudo apt remove --purge'
alias sysi='sudo apt reinstall systemd'
alias updater='sudo apt update && sudo apt upgrade && sudo apt dist-upgrade && sudo snap refresh && killall snap-store && pkill update-manager'
#Launchers or commands used for keyboard shortcuts
#caffeine-indicator gedit ¿gnome-text-editor?
alias chrome='google-chrome --incognito http://www.google.com'
alias mozilla='firefox --private-window http://www.google.com'
#List_Show
alias climah='curl wttr.in/Hermosillo?M' #Show
alias climaf='curl wttr.in/Temple+Terrace' #the
alias climac='curl wttr.in/Temple+Terrace?M' #weather
alias disk='sudo fdisk -l' #Detailed List of partitions and media
alias diskpart='sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL' #Partitions, size, file type, etc
alias extip='curl icanhazip.com'
alias extip1="sudo lynx -dump http://whatismyip.akamai.com | awk '{print $1}'"
alias listusers='cut -d: -f1,3 /etc/passwd | egrep ':[0-9]{4}$' | cut -d: -f1' #List the human users on the system
alias lsa='ls -alhS'
alias kernel='dpkg --list | grep -E -i --color '\''linux-image|linux-headers'\''' #Installed kernel versions
alias pyv='python3 --version' #Version of python
alias quien='uname -r && date && curl icanhazip.com && hostname -I && who && hostnamectl'
alias sys='systemctl list-units --type=service --state=running'
alias s='curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python3 -'
alias sp='speedtest-cli --secure'
alias tm='sudo dmidecode -t 2' #Bios/Motherboard version
alias t='timedatectl'
alias v='cat /etc/os-release && cat /proc/version' #Longlist ubuntu version
#yt-dlp
alias ytbest='yt-dlp -f bv*+ba' #Incomplete command. Needs url
alias ytupdate='pip install --upgrade yt-dlp' #Incomplete command. Needs url
alias ytmp3='yt-dlp -x --audio-format mp3' #Incomplete command. Needs url
alias ytwav='yt-dlp -x --audio-format wav' #Incomplete command. Needs url
#killall snap-store && sudo snap switch snap-store --channel=latest/stable/ubuntu-23.10 && sudo snap refresh