-
Notifications
You must be signed in to change notification settings - Fork 0
/
zzzzzzzzzz_bash_aliases
67 lines (64 loc) · 2.91 KB
/
zzzzzzzzzz_bash_aliases
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
alias ..='cd ../'
alias ...='cd ../../'
alias .3='cd ../../../'
alias .4='cd ../../../../'
alias .5='cd ../../../../../'
alias .6='cd ../../../../../../'
alias apacheEdit='sudo pico /etc/apache2/sites-available/000-default.conf'
alias apacheLogs='less +F /var/log/apache2/error_log'
alias apacheRestart='sudo systemctl restart apache2'
alias apacheSSLEdit='sudo pico /etc/apache2/sites-available/000-default-le-ssl.conf'
alias c='clear'
alias cd..='cd ../'
alias cic='set completion-ignore-case On'
alias clr='clear;echo;neofetch'
alias clrp='clear;echo;neofetch;echo;/usr/bin/python3 /opt/PlexUtils/Plex-MOTD/plex-motd.py'
alias cp='cp -iv'
alias cpu_hogs='ps wwaxr -o pid,stat,%cpu,time,command | head -10'
alias editHosts='sudo pico /etc/hosts'
alias fix_stty='stty sane'
alias herr='tail /var/log/httpd/error_log'
alias ipInfo='ipconfig getpacket ens18'
alias jailstatus='sudo fail2ban-client status'
alias jailban='sudo fail2ban-client status sshd'
alias less='less -FSRXc'
#alias l.='/bin/ls -d .* --color=auto'
#alias ll='LC_COLLATE=C /bin/ls -l --all --human-readable --classify --color --group-directories-first'
#alias ls='LC_COLLATE=C /bin/ls --all --human-readable --classify --color --group-directories-first'
#alias lr='ls -R | grep ":$" | sed -e '\''s/:$//'\'' -e '\''s/[^-][^\/]*\//--/g'\'' -e '\''s/^/ /'\'' -e '\''s/-/|/'\'' | less'
alias l.='/usr/bin/eza -alhgF --icons --time-style=long-iso --group-directories-first --color-scale-mode=gradient --sort=Extension -d .*'
alias ll='/usr/bin/eza -alhgF --icons --time-style=long-iso --group-directories-first --color-scale-mode=gradient --sort=Extension'
alias ls='/usr/bin/eza -lhgF --icons --time-style=long-iso --group-directories-first --color-scale-mode=gradient --sort=Extension'
alias lr='/usr/bin/eza -aTL 4 --icons'
alias lsock='sudo /usr/sbin/lsof -i -P'
alias lsockT='sudo /usr/sbin/lsof -nP | grep TCP'
alias lsockU='sudo /usr/sbin/lsof -nP | grep UDP'
alias make10mb='mkfile 10m ./10MB.dat'
alias make1mb='mkfile 1m ./1MB.dat'
alias make5mb='mkfile 5m ./5MB.dat'
alias memHogsPs='ps wwaxm -o pid,stat,vsize,rss,time,command | head -10'
alias memHogsTop='top -l 1 -o rsize | head -20'
alias mkdir='mkdir -pv'
alias mv='mv -iv'
alias myip='curl ip.appspot.com'
alias netCons='lsof -i'
alias numFiles='echo $(ls -1 | wc -l)'
alias openPorts='sudo lsof -i | grep LISTEN'
alias path='echo -e ${PATH//:/\\n}'
alias plexbounce='sudo systemctl restart plexmediaserver'
alias plexstart='sudo systemctl start plexmediaserver'
alias plexstop='sudo systemctl stop plexmediaserver'
alias process='ps -ax'
alias qfind='find . -name '
alias showBlocked='sudo ipfw list'
alias show_options='shopt'
alias sl='ls'
alias ssh-showkeys='tail +1 ~/.ssh/*.pub'
alias ttop='top -R -F -s 10 -o rsize'
alias which='type -all'
alias ~='cd ~'
ssh-keyshare() { cat ~/.ssh/id_rsa.pub | ssh "$1" 'cat >> ~/.ssh/authorized_keys'; }
export LC_COLLATE="C"
if [ -f ~/.bash_aliases_local ]; then
. ~/.bash_aliases_local
fi