mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-05-11 05:55:37 +00:00
aliases/misc: Do not assume the absolute path of executables
This commit is contained in:
@@ -63,21 +63,21 @@ alias qfind="find . -name " # qfind: Quickly search for file
|
||||
# 4. NETWORKING
|
||||
# ---------------------------
|
||||
|
||||
alias netCons='lsof -i' # netCons: Show all open TCP/IP sockets
|
||||
alias lsock='sudo /usr/sbin/lsof -i -P' # lsock: Display open sockets
|
||||
alias lsockU='sudo /usr/sbin/lsof -nP | grep UDP' # lsockU: Display only open UDP sockets
|
||||
alias lsockT='sudo /usr/sbin/lsof -nP | grep TCP' # lsockT: Display only open TCP sockets
|
||||
alias ipInfo0='ifconfig getpacket en0' # ipInfo0: Get info on connections for en0
|
||||
alias ipInfo1='ifconfig getpacket en1' # ipInfo1: Get info on connections for en1
|
||||
alias openPorts='sudo lsof -i | grep LISTEN' # openPorts: All listening connections
|
||||
alias showBlocked='sudo ipfw list' # showBlocked: All ipfw rules inc/ blocked IPs
|
||||
alias netCons='lsof -i' # netCons: Show all open TCP/IP sockets
|
||||
alias lsock='sudo lsof -i -P' # lsock: Display open sockets
|
||||
alias lsockU='sudo lsof -nP | grep UDP' # lsockU: Display only open UDP sockets
|
||||
alias lsockT='sudo lsof -nP | grep TCP' # lsockT: Display only open TCP sockets
|
||||
alias ipInfo0='ifconfig getpacket en0' # ipInfo0: Get info on connections for en0
|
||||
alias ipInfo1='ifconfig getpacket en1' # ipInfo1: Get info on connections for en1
|
||||
alias openPorts='sudo lsof -i | grep LISTEN' # openPorts: All listening connections
|
||||
alias showBlocked='sudo ipfw list' # showBlocked: All ipfw rules inc/ blocked IPs
|
||||
|
||||
|
||||
# ---------------------------------------
|
||||
# 5. SYSTEMS OPERATIONS & INFORMATION
|
||||
# ---------------------------------------
|
||||
|
||||
alias mountReadWrite='/sbin/mount -uw /' # mountReadWrite: For use when booted into single-user
|
||||
alias mountReadWrite='mount -uw /' # mountReadWrite: For use when booted into single-user
|
||||
|
||||
|
||||
# ---------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user