A Linux command Detailed

Introduction
What is Linux?
Linux is a free to use and free dissemination of Unix-like operating system, is based on POSIX and Unix multi-user, multi-tasking, multi-threading and multi-CPU support for the operating system. It can run major Unix tools, applications, and network protocols. It supports 32-bit and 64-bit hardware. Linux has inherited the Unix design idea to the network as the core, is a stable performance multi-user network operating system.
Features: Free, reliable, secure, stable, multi-platform.
What is the Linux command?
linux command is a Linux system management commands. For Linux systems, for both the central processor, memory, disk drives, keyboard, mouse, or user and other is a file, Linux system administration command is the core of its normal operation, the previous DOS command similar. There are two types of linux command in the system: Built-in Shell commands and Linux commands.
A, shell
of a special program running on the system 1.Linux
2. act as a "translator" before the user and kernel
3. When the user logs on Linux systems, automatically load a shell program
4.Bash Linux system is to use the default shell program
file is located in / bin / bash
A Linux command Detailed

Two Linux command
Linux commands classification

A Linux command Detailed
Three, Linux command line format
common command line format: Command + word + [options] Parameters
Command: Operation + Option: Function parameters +

Linux命令行的辅助操作
Tab键:自动补齐
反斜杠 \ :强制换行
快捷键Ctrl+U:清空至行首
快捷键Ctrl+K:清空至行尾
快捷键Ctrl+L:清屏
快捷键Ctrl+C:取消本次命令编辑
Linux常用命令
help:查看bash内部命令帮助信息
A Linux command Detailed
--help:适用于大多数外部命令
A Linux command Detailed
man:阅读手册页
上下方向键可滚动文本;Page up和Page down 翻页;Q、q退出;按“/” 查找内容
A Linux command Detailed
pwd:显示用户当前所在工作目录位置,且显示绝对路径,根目录
A Linux command Detailed
cd:到达某个目标目录
A Linux command Detailed
cd ~: 家目录
A Linux command Detailed
cd - :切换到上一次所在的目录
A Linux command Detailed
cd .. :返回上层目录
A Linux command Detailed
cd../../ :返回上层目录
A Linux command Detailed
cd / 根目录
A Linux command Detailed
ls:列表显示目录内容
ls+【选项】+文件或目录
A Linux command Detailed
ls -l :显示文件的详细信息
A Linux command Detailed
ls -a :查看隐藏文件
A Linux command Detailed
ls -A 查看隐藏文件 除了. ..
A Linux command Detailed
ls -d显示本目录的信息

A Linux command Detailed
ls -h 友好形式显示带有单位的信息
A Linux command Detailed
ls -R 递归形式
A Linux command Detailed
以颜色区分文件类型
黑色----数据文件
蓝色----目录、文件夹
红色----压缩包
绿色----执行文件,命令文件,脚本
天蓝色----链接文件,快捷方式
黄----设备文件,磁盘文件
设置别名
alias myls=“ls-alh”
du 进行统计
A Linux command Detailed
du -a统计所有
A Linux command Detailed
du -h友好的形式有单位的
A Linux command Detailed
du -s只统计总大小
A Linux command Detailed
mkdir 创建空目录
A Linux command Detailed
软链接:快捷方式
硬链接:文件的别名
文件节点:文件在磁盘中存储的唯一标识序列
cp 复制
A Linux command Detailed
rm -f 删除
A Linux command Detailed
which 命令|程序名 或者 which -a 命令|程序名
A Linux command Detailed
find+查找范围+查找条件表达式
采用递归方式,根据目标的名称、类型、大小等不同属性进行精细查找
find -name、find -size、find -user、find -type
“-a” 表示而且 (and)
“-o” 表示或者 (or)
A Linux command Detailed

总结
初学Linux命令,对我们来说是一道很难的关卡,唯一的窍门还是需要我们多敲多练,才能熟练掌握。这是我们学习的基础,只要掌握好命令我们才能在接下来的学习中取得更好的进展,不然以后接触的命令会越来越多,现在不赶紧好好吸收的话,到以后更难吸收,所以一定要多加练习!

Guess you like

Origin blog.51cto.com/14557905/2446339