-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbash_aliases
138 lines (107 loc) · 3.69 KB
/
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
# ----------------------- #
# Alias file for jacobsin #
# ----------------------- #
#----------------
# File structure
#----------------
#----------------------------------------------
# Terminal Commands
# ---------------------------------------------
alias c="clear"
alias q="exit"
alias h="history"
alias j="jobs -l"
alias ..="cd ../"
alias ...="cd ../../"
alias .3="cd ../../../"
alias winsize="xwininfo"
alias mon="sudo airmon-ng start"
#-----------------------------------------------
#-----------------------------------------------
# Safety Commands
#-----------------------------------------------
alias rm="rm -I --preserve-root"
alias mv="mv -i"
alias cp="cp -i"
#-----------------------------------------------
#-----------------------------------------------
# List Commands
#-----------------------------------------------
alias l="ls -a"
alias ls="ls -1 --color=auto"
alias lsa="ls -a -1 --color=auto"
alias ks="ls"
#-----------------------------------------------
#-----------------------------------------------
# Creation Commands
#-----------------------------------------------
alias mkdir="mkdir -pv"
#-----------------------------------------------
#-----------------------------------------------
# Find Commands
#-----------------------------------------------
alias grep="grep --color"
#-----------------------------------------------
#-----------------------------------------------
# Permissions Commands
#-----------------------------------------------
alias chx="chmod +x"
#-----------------------------------------------
# System Commands
#-----------------
#-----------------------------------------------
# Update commands
#-----------------------------------------------
alias upd="sudo apt update"
alias upg="sudo apt upgrade -y"
alias dup="sudo apt dist-upgrade -y"
alias aure="sudo apt autoremove -y"
alias update="upd && upg && dup && aure"
alias yay="yay -Sy"
#-----------------------------------------------
#-----------------------------------------------
# Lock Commands
#-----------------------------------------------
alias reboot="sudo reboot 00"
alias shutdown="sudo shutdown 00"
#-----------------------------------------------
#-----------------------------------------------
# Install commands
#-----------------------------------------------
alias install="sudo apt install"
alias search="sudo apt-cache search"
alias fixdpkg="sudo dpkg --configure -a"
#-----------------------------------------------
# Other Commands
#----------------
#------------------------------------------------
# Git Commands
#------------------------------------------------
alias add="git add ."
alias commit="git commit -m"
alias push="git push"
#------------------------------------------------
#------------------------------------------------
# Ping Commands
#------------------------------------------------
alias ping="ping -c 5"
alias fping="ping -c 100 -s.2"
#------------------------------------------------
#------------------------------------------------
# Vim Commands
#------------------------------------------------
alias vi="vim"
alias svi="sudo vi"
alias edit="vim"
#------------------------------------------------
#------------------------------------------------
# Python Commands
#------------------------------------------------
alias python3="python3.6 -OO"
alias python2="python -OO"
#------------------------------------------------
#------------------------------------------------
# System service commands
#------------------------------------------------
alias cups="/etc/init.d/cups start"
#------------------------------------------------