查看文件/文件夹大小: du -sh, 例: du -sh .[!.]*, 查看当前目录下所有以 . 开头的文件/文件夹的大小
修改 shell 只显示当前路径: 在 .bashrc 文件中修改:

解压 .zip 文件到指定目录并保留源文件: unzip *.zip -d ./
查看占用了某个端口的进程 id: lsof -i :<port>, 例如 lsof -i :8890
后台启动任务并重定向输出: nohup ... &, 例如 nohup ./bin/startup.sh > nacos.log 2>&1 & 表示后台启动startup.sh, 并将错误输出和标准输出重定向到nacos.log 文件
拓展: windows 上类似的命令是
Start-Process -WindowStyle hidden -FilePath ".\bin\startup.cmd" -ArgumentList "-m standalone"表示后台启动服务, 参数列表为-m standalone(如果不止一个参数的话就后面加,继续写)
