ls命令按文件大小排序
ls -Sl 由大到小排序
ls -Slr 从小到大排序
ls按时间排序
ls -lt 从新到旧
ls -lrt 从旧到新
显示子目录结构
ls -R
-r,反向
-l, 显示详情
-h,表示”–human-readable”,单位是k或者M ,比较容易看清楚结果。
-a,显示隐藏文件 . 开头的文件
[root@localhost ~]# netstat 选项
选项:
-a:列出系统中所有网络连接,包括已经连接的网络服务、监听的网络服务和 Socket 套接字;
-t:列出 TCP 数据;
-u:列出 UDF 数据;
-l:列出正在监听的网络服务(不包含已经连接的网络服务);
-n:用端口号来显示而不用服务名;
-p:列出该服务的进程 ID (PID);
docker run -tid --name centos7 -p 80:80 -p 443:443 -p 8888:8888 -p 888:888 --restart always -v ~/wwwroot:/www/wwwroot eeb6ee3f44bd
Installed:
firewalld.noarch 0:0.6.3-13.el7_9
Dependency Installed:
ebtables.x86_64 0:2.0.10-16.el7 firewalld-filesystem.noarch 0:0.6.3-13.el7_9 ipset.x86_64 0:7.1-1.el7 ipset-libs.x86_64 0:7.1-1.el7 iptables.x86_64 0:1.4.21-35.el7
libmnl.x86_64 0:1.0.3-7.el7 libnetfilter_conntrack.x86_64 0:1.0.6-1.el7_3 libnfnetlink.x86_64 0:1.0.1-4.el7 libselinux-python.x86_64 0:2.5-15.el7 python-decorator.noarch 0:3.4.0-3.el7
python-firewall.noarch 0:0.6.3-13.el7_9 python-slip.noarch 0:0.4.0-4.el7 python-slip-dbus.noarch 0:0.4.0-4.el7
Complete!
Failed to get D-Bus connection: Operation not permitted
Error: DBUS_ERROR: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
install.sh: line 868: ip: command not found
==================================================================
Congratulations! Installed successfully!
==================================================================
外网面板地址: http://111.196.74.191:26014/404015f9
内网面板地址: http://:26014/404015f9
username: ekfhbb3d
password: d6553833
If you cannot access the panel,
release the following panel port [26014] in the security group
若无法访问面板,请检查防火墙/安全组是否有放行面板[26014]端口
==================================================================
Time consumed: 3 Minute!
[root@2649ca28b98d /]# bt
docker安装宝塔
docker run -tid --name centos -p 80:80 -p 443:443 -p 8888:8888 -p 888:888 --restart always -v ~/wwwroot:/www/wwwroot centos
yum install -y wget && wget -O install.sh https://download.bt.cn/install/install_6.0.sh && sh install.sh ed8484bec
[root@454c78aa5e51 /]# cat /etc/centos-release
CentOS Linux release 8.4.2105
查看linux系统信息
cat /etc/issue
cat /etc/redhat-release
lsb_release -a
1、利用“vi ~/.bashrc”命令打开文件;
2、在文件中添加“alias ll='ls -l'”数据并保存;
3、利用“source ~/.bashrc”命令运行后即可使用ll命令。