[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: 1726792091202975.png (486 KB, 785x847)
486 KB
486 KB PNG
alias c='clear'
alias d='cd'
alias b='d ..'
alias a='cat'
alias e='echo'
alias f='find'
alias t='touch'
alias x='exit'
alias u='sudo '
alias pm='u pacman'
alias update='pm -Syu'
alias ins='pm -S '
alias v='vim'
alias uv='u v'
alias dl='d ~/Downloads'
alias wg='dl && wget '
alias l='ls -lah'
alias s='ls -CAF --color=auto --group-directories-first'
alias cp='cp -vi'
alias mv='mv -vi'
alias rm='rm -vI --one-file-system'
alias mkdir='mkdir -pv'
alias pk='pkill -9'
alias watch='watch -n1 '
alias wt='watch '
alias wa='watch a'
alias df='df -h'
alias du='du -h'
alias du2='du --max-depth=1 | sort -h'
alias du3='du | sort -h'
>>
alias rm="rm -I"
alias cp="cp -i"
alias mv="mv -i"
alias make="time make"
alias gdb="gdb -q"
alias ffmpeg="ffmpeg -hide_banner"
>>
>>106480946
d='cd'
b='d ..'

lol
alias interbutt='sudo nmcli dev connect eth0'
alias assploded='sudo nmcli dev disconnect eth0'
>>
alias sudo="sudo "
alias apt="dnf"
>>
>>106480946
i need to do this shit
instead of making these i just make an executable shell script in .local/bin
but i need to think about and apply some of these faster directory movements and file management stuff. like its dota2 or arma3. keybinds baby.
>>
File: 1743910773643900.jpg (110 KB, 575x330)
110 KB
110 KB JPG
>>106481043
>>
>>106481079
Loonix is tailored to calling binaries for the most minute shit like listing a directory you'll be fine
I'd rather trust a script file than POZZIX cancer to remember my shortcuts
>>
alias cls='clear'
alias py='python3'
alias updatesys='sudo dnf upgrade --refresh -y && sudo dnf autoremove -y && sudo flatpak update -y && sudo flatpak uninstall --unused -y'
>>
alias temps="sensors;nvidia-smi"
>>
>>106481118
How to completely fuck yourself up one day with that last one. Hope you're on a stable distro but I don't know any stable distros using dnf.
>>
>>106481117
i mean its good to make these shortkeys your muscle memory just for better terminal use
d='cd'
b='d ..'
>>
>>106481091
It sucks not being able to use aliases after sudo otherwise. May be there is a better way.
>>
>>106481118
>
alias cls='clear'

ctrl+L
>>
>>106481187
Doesn't clear scrollback like 'clear'.
>>
>>106481202
clear doesn't clear scrollback on my machine
>>
>>106481212
Fedora, Debian with bash...it does for me.
>>
>>106481170
i'll have to slowly introduce them though to actually remember that they're there cause i'm old...
you can put something in your .bashrc that reminds you of them randomly
god i love linux
>>
alias schedutil='sudo cpupower -c all frequency-set --governor schedutil'
alias powersave='sudo cpupower -c all frequency-set --governor powersave'
>>
>>106481450
I have something similar.
alias freaklo='~/bin/freaklo.sh'
sudo bash -c 'for ((i=0;i<$(nproc);i++)); do cpufreq-set -c $i -g ondemand; done'

alias freakhi='~/bin/freakhi.sh'
sudo bash -c 'for ((i=0;i<$(nproc);i++)); do cpufreq-set -c $i -g performance; done'
>>
>>106481545
To me, other governors never made much difference. Powersave and Schedutil are the only ones that doesn't unnecessarily increase cpu temperature
>>
>>106481707
I haven't noticed increased temps other than alongside increased workload, but I will check cpupower out, for sure. Thanks for posting, regardless.
>>
>>106481212
>>106481187
everyone that responds with ctrl L is an insanely mentally ill retard
>>
>>106482358
everyone? it was me, and so what spaz
2 key presses vs 6
>>
from my old arch machine, some were just for testing stuff out and were never used
alias syu="sudo pacman -Syu"
alias bye="shutdown now"
#alias fire="MOZ_ENABLE_WAYLAND=1 firefox"
alias orphans="pacman -Qtdq | sudo pacman -Rnsc -"
alias session="echo $XDG_SESSION_TYPE"
alias packs="pacman -Qqe > Downloads/package_list.txt"
alias grub1="sudo grub-install --target=x86_64-efi --efi-directory=/boot/EFI --bootloader-id=GRUB"
alias grub2="sudo grub-mkconfig -o /boot/grub/grub.cfg"
alias startx="sudo /opt/lampp/lampp start"
alias stopx="sudo /opt/lampp/lampp stop"
alias project="mkdir -p projectName/src/{css,images,js} && touch projectName/index.html projectName/src/css/style.css projectName/src/js/main.js"

neo() {
pacman -Q | wc -l
uname -r
uptime -p
gnome-shell --version
nvidia-smi --query-gpu=name --format=csv,noheader
grep -m 1 'model name' /proc/cpuinfo
free -m
}

alias adwaita="gsettings set org.gnome.desktop.interface icon-theme 'Adwaita'"
alias kora="gsettings set org.gnome.desktop.interface icon-theme 'Kora'"
>>
>>106480946
alias purge="history -c && echo nothingburger > ~/.bash_history"
alias cls=clear
alias clr='cls && purge'
alias nothingburger="echo It\'s a nothingburger"
>>
>>106482474
also
bal="sudo nano /etc/bash_aliases"
ral=". /etc/bash_aliases"


The rest of my aliases are kind of domain specific and useless for most like specifying the default nasm format and include location.
>>
There's no use case for aliasing a 3 character command to a 1 character command.
>>
>>106483653
My use case is having a split keyboard pretty wide apart. I have a lot of aliases setup so just my left hand can do a lot of terminal stuff. Then I can usually tab my way to success. That includes a few three letter character commands into one, especially if I would have to use my the right half of my keyboard.
>>
>>106480946
xonsh:
aliases["ls"]        = "ls --color=auto -o -v --human-readable --group-directories-first --dereference --indicator-style=slash"
aliases["l"] = "ls"
aliases["la"] = "ls -A"
aliases["c"] = "clear"
aliases["grep"] = "grep --color=auto"
aliases["g"] = "grep"
aliases["cp"] = "rsync -avh -P"
aliases["rm"] = "la @($args) and /usr/bin/rm -irv @($args)"
aliases["mkcd"] = "mkdir $arg0 and cd $arg0"
aliases["xclip"] = "xclip -selection clipboard"
aliases["xc"] = "xclip"

aliases["v"] = "vim"
aliases["gvim"] = "gvim -f"
aliases["gv"] = "gvim"
aliases["e"] = "sudo -e"
aliases["vimpager"] = "vim -u ~/.vimpager -"
aliases["vp"] = "vimpager"

aliases["as"] = "apt search"
aliases["aud"] = "sudo apt update and apt list --upgradable"
aliases["aug"] = "sudo apt upgrade"
aliases["ai"] = "sudo apt install"
aliases["ar"] = "sudo apt remove"
aliases["ap"] = "sudo apt purge"
aliases["aclean"] = "sudo apt autoremove --purge -y and sudo apt clean -y"
aliases["dpkg"] = "sudo dpkg"
aliases["systemctl"] = "sudo systemctl"

aliases["dotfiles"] = "git --git-dir=$HOME/Git/dotfiles --work-tree=$HOME"
aliases["dfupdate"] = "dotfiles add ~/.config; dotfiles status; dotfiles commit -a -m '.'"

aliases["htop"] = "nice -n -1 htop"
aliases["du"] = "du --all --human-readable --dereference --max-depth 1"
aliases["time"] = "time -p"
aliases["wget"] = "wget --hsts-file /dev/null"



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.