- sudu和su的区别:sudo 命令需要输入当前用户的密码,su 命令需要输入 root 用户的密码。当灭有root账户时,可以使用sudo su进入超级用户模式。
- 创建root账户:
sudo passwd root
- centos使用yum,ubuntu使用apt来安装。默认的 Ubuntu 软件源包含了一个软件包组,名称为 “build-essential”,它包含了 GNU 编辑器集合,GNU 调试器,和其他编译软件所必需的开发库和工具。想要安装开发工具软件包,以 拥有 sudo 权限用户身份或者 root 身份运行下面的命令:
sudo apt update
sudo apt install build-essential
- find命令:
find . -name file.txt
- "Depends: g++ (>= 4:9.2) but it is not going to be installed"错误处理:https://blog.csdn.net/su_cicada/article/details/109577212
- scp命令:
scp local_file remote_user@remote_host:/remote/directory # 从本地到远程 scp remote_user@remote_host:/remote/file local_directory # 从远程到本地
- 国产操作系统kylin实际上是ubuntu的一个分支,而不是centos