echo abcdefg >> aa.txt //向aa.txt文件末尾追加 abcdefg 字符串 1 基础命令: clear //清屏 whoami //查看当前所登录的用户 who //Print information about users who are currently(目前) logged in. SYNOPSIS(摘要): who [OPTION]... [ FILE | ARG1 ARG2 ] DESCRIPTION(描述): Print information abou
方式一 Mac 系统下默认是不带这条命令的,执行下面这条命令也可以打印出树状结构. find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g' 不想每次都输入这么长一条命令怎么办?用 alias 给这条命令指定一条别名,方法步骤如下: Step 1 :创建 .bash_profile 文件 cd ~ touch .bash_profile open .bash_profile Step 2:把下面的命令保存在这个文件中 alias tree="f