首先在 /.bash_profile 文件中加入如下命令(如果没有就touch一个) aliasll='ls-alF' 随后执行 source/.bash_profile 命令,使修改生效 这样就可以使用ll命令了,但是这样有一个问题,每次新开的终端ll命令都会失效 以下是解决方案在 ~/.zshrc 文件中加入如下命令 source/.bash_profile 如果找不到.zshrc文件,跟上面一样touch一个就可以了 执行 source/.zshrc 使文件生效,之后的每次ll就都会起作用了
mac下使用brew安装包报错error:CannotinstallunderRosetta2inARMdefaultprefix(/opt/homebrew)! TorerununderARMuse: arch-arm64brewinstall... Toinstallunderx86_64,installHomebrewinto/usr/local. 解决办法: arch-arm64brewinstallxxx
sudoadd-apt-repositoryppa:wireshark-dev/stable sudoaptupdate sudoaptinstallwireshark wireshark--version