Set up automatic networking alias for @Mac terminal
#= alias for connect wifi.
alias lsnt=‘networksetup -listallhardwareports’ # list network device
alias lswf=’/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport scan’ # scan wifi, and show list
alias onwf=‘networksetup -setairportpower en0 on’
alias offwf=‘networksetup -setairportpower en0 off’
alias lkwf=‘networksetup -setairportnetwork en0’
#- alias lk413=‘networksetup -setairportnetwork en0 HUAWEI-xxx passwd’
alias lk413=‘lkwf HUAWEI-xxx passwd’
alias lsbb=‘lsbb(){ lswf | grep pi | cut -c 23-32 | grep “$1” ;}; lsbb’ # scan BB wifi, and show list
alias lkbb=‘lkbb(){ lkwf “$1” passwd ; }; lkbb’
alias lkb=‘lkb(){ lkwf lsbb "$1"
passwd ; }; lkb’
Read More:
- [Solved] Failed to start LSB: Bring up/down networking
- Set the cursor of Ubuntu terminal to turn on automatic display
- CentOS7 Failed to start LSB: Bring up/down networking [How to Solve]
- [Solved] Virtual machine Failed to restart network Error: Error:Failed to start LSB: Bring up/down networking
- Mac opens Terminal and reports an error -bash:: command not found
- Error: error from slirp4netns while setting up port redirection: map[desc:bad request: add_hostfwd:
- [Linux] [Ubuntu] Error opening terminal: xterm-256color
- Termux setting path environment variable
- [Solved] NameError: name ‘reload’ is not defined on ROS melody terminal
- [Solved] Linux SSH Login Terminal Error: shell request failed on channel 0
- [Solved] Ubuntu Terminal Error: subprocess installed post-installation script returned error exit status 1
- [Solved] Debian Error: Error opening terminal: xterm
- Ubuntu: How to deal with the fatal: the remote end hung up unexpected error of GIT clone Android kernel
- MAC: Clion configure C compiler Error: The C compiler identification is unknown
- How to Use Apt get Command Under Mac OSX
- [Solved] MAC system brew install error: failure while executing
- MAC Adb Shell Error: -bash: adb: command not found, adb
- [Solved] ioctl_cfg80211.c:1130:4: error: too many arguments to function ‘cfg80211_roamed’
- Solution of device eth0 does not see to be present, delaying initialization. Error in network card under Linux
- Centos8 Could not restart the Network: Failed to restart network.service: Unit network.service not found