“Linux”的版本间的差异
跳到导航
跳到搜索
Jihongchang(讨论 | 贡献) |
Jihongchang(讨论 | 贡献) |
||
第20行: | 第20行: | ||
[[Linux 安装 JDK|安装 JDK]] | [[Linux 安装 JDK|安装 JDK]] | ||
+ | |||
+ | [[解压zip]] | ||
[[telnet]] | [[telnet]] |
2023年1月24日 (二) 16:23的版本
清空文件内容
[root@bogon logs]# ls -lh error.log
-rw-r--r--. 1 root root 3.1M Aug 30 13:34 error.log
[root@bogon logs]# >error.log
[root@bogon logs]# ls -lh error.log
-rw-r--r--. 1 root root 0 Aug 30 13:36 error.log
[root@bogon logs]#
distribution | 软件管理机制 | 使用命令 | 在线升级机制(命令) |
---|---|---|---|
Fedora/Red Hat/CentOS | RPM | rpm | YUM(yum) |
Debian/Ubuntu | DPKG | dpkg | APT(aptitude、apt、apt-get、apt-cache......) |
aptitude(Ubuntu、Debian)
apt(Ubuntu、Debian)
rpm(RHEL(Red Hat Enterprise Linux)、CentOS )
yum(CentOS 、RHEL(Red Hat Enterprise Linux)、Fedora)
查看本机ip
ipconfig -a