“Linux”的版本间的差异

来自姬鸿昌的知识库
跳到导航 跳到搜索
第2行: 第2行:
  
  
Linux 系统目录结构
 
  
https://www.runoob.com/linux/linux-system-contents.html
+
[[Linux 系统目录结构]]
 +
 
  
  

2023年2月2日 (四) 04:10的版本

Linux分支


Linux 系统目录结构



Linux 查看端口占用

Linux后台运行进程

查看Linux是32位还是64位

Linux查看操作系统版本号

https://linux.die.net/man/

CentOS 和 RedHat

lsb_release

systemctl

设置系统代理

curl

安装 JDK

解压zip

telnet

traceroute

清空文件内容

[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(aptitudeapt、apt-get、apt-cache......)

配置 NTP

aptitude(Ubuntu、Debian)

apt(Ubuntu、Debian)


rpm(RHEL(Red Hat Enterprise Linux)、CentOS )

yum(CentOS 、RHEL(Red Hat Enterprise Linux)、Fedora)

Ubuntu 配置镜像


netstat

Linux全文本搜索

less

vim

查看CPU和物理内存

/proc/meminfo 内存信息说明

/etc/services 服务、端口文件

free

top

ps

wget

ping

which

file

LANG

rz sz

net-tools

查看本机ip

ipconfig -a


apt VS apt-get

apt-get VS apt VS aptitude