Linux常见操作指令一

命令

解释

hostname

查看主机名

Ifconfig

查看网络

ping

查看网络是否连通

history

查看历史信息

clear

清屏

pwd

查看“当前工作目录”的完整路径

cd

cd.(当前目录) cd..(父目录)

cd ~ (当前用户的主目录)

date

显示日期

cal

显示日历

bc

计算器

shutdown

关机指令

程序的启动和关闭方式

①/etc/init.d/服务名 start

  /etc/init.d/服务名 stop

  /etc/init.d/服务名 restart

②service 服务名 start

  Service 服务名 stop

Service 服务名 restart

关机指令:


重启、关机:reboothalt,poweroff

用户切换:


猜你喜欢

转载自blog.csdn.net/qq_41934990/article/details/80573375