C++学习:第一章 Linux基础 - LInux基本操作 一

版权声明:共享知识,欢迎转载 https://blog.csdn.net/kakiebu/article/details/82768738

常用命令

基本格式: 命令  选项  参数

Linux 中”.”开头的文件为隐藏文件

ps                        目前正在运行的程序 process status

exit                     退出最近的一层shell

exec                   切换shell,bash、sh

ls                         列出当前目录下的文件

ls –F                    标记:*为可执行文件;@为软连接;/为目录;|为管道;-普通文件

ls –F –A = ls –FA

ls –t                    按照时间排序

ls –R                   列出目录树

clear                            清屏

Ctrl+L                 组合键,清屏用

pwd                    打印当前工作目录 print word directory

cd                        切换工作目录change directory

.                           当前目录

..                         上一级目录

cd ~??                ??为用户名,切换到??的主目录下、

telnet                 连接到远程的电脑下telnet 192.168.1.100

logout                退出 telnet

man [命令]       这是显示命令的所有调用方法的函数 man

date                   日期的组合使用

date +%a

date +”%F  %a  %T”

id                         查看用户id

sleep                  休眠

猜你喜欢

转载自blog.csdn.net/kakiebu/article/details/82768738