Linux常用命令

root为超级用户

退出时可用Logout或exit,然后按enter,按Ctrl+D也可以退出系统

关机和重启:poweroff和reboot;

shutdown -h now 立即关机

              -h +mins 指定分钟以后

              -h hh:ss 在一个特定的时间内

#startx 启动KDE桌面环境

#xinit 启动XServer

#startkde 运行KDE

#clear 刷新屏幕

#date 在屏幕上显示日期和时间

#echo 将命令行中的内容回显到标准输出上

#cal [month][year] 显示指定月份或年的日历

#useradd username 添加新用户

#passwd username 设置口令

#ls -a 查看当前目录下所有文件

你可能感兴趣的:(Linux常用命令)