简单运用linux,linux目录基础、简单的命令以及运用linux帮助

计算机组成及其功能

计算机其实是:接收用户输入指令与数据,经过中央处理器的数据与逻辑单元运算处理后,以产生或存储成有用的信息。所以计算机组成可以分为输入单元、输出单元、CPU(控制单元、算术逻辑单元)、内存

输入单元:包括键盘、鼠标、扫描仪、手写板、触摸屏等;实现数据的输入功能

输出单元:例如屏幕、打印机等;实现数据处理后结果的输出功能

算术逻辑单元:主要负责程序运算与逻辑判断

控制单元:主要协调各组件与各单元间的工作

内存:提取输入单元数据,提供cpu数据的读取

linux主流发行版

debian:ubuntu

slackware:s.u.s.e

redhat:redhat enterprise linux ; centos

linux哲学思想

一切皆文件:linux系统将所有的资源抽象为文件,硬件设备、通信接口也通过文件表示。这样管理整个系统或修改配置系统其实就变成文件管理

一个程序只做一件事:linux系统由众多功能单一的小程序组成,复杂任务通过程序组合完成(小程序不容易出错、复杂任务排错可以分解为小程序)

程序启动尽力不与人交互:希望以编程的方式实现自动化

文本保存配置文件:用最基本的编辑工具就能完成;备份、阅读比较方便;熟悉配置后能快速部署

linux命令

linux命令格式:COMMAND [OPTION]… [FILE]|[string]

COMMAND:linux命令本身

[OPTION]:linux命令运行可调整项,可以跟多个选项

[FILE]|[string]:linux命令后跟的参数,也有可能不需要参数;参数一般是文件或字符串

ifconfig命令

ifconfig – configure a network interface(可以用做查看ip地址)

echo命令

echo – display a line of text

-n     do not output the trailing newline

-e     enable interpretation of backslash escapes

tty命令

tty – print the file name of the terminal connected to standard input

startx命令

startx – initialize an X session

export命令

export – set the export attribute for variables

pwd命令

pwd – print name of current/working directory

history命令

history – display the command history list with line numbers

-c     Clear the history list by deleting all the entries

-d offset    Delete the history entry at position offset

shutdown命令

shutdown – bring the system down

-r     Requests that the system be rebooted after it has been brought down

-h     Requests that the system be either halted or powered off after it has been

brought down, with the choice as to which left up to the system

-c     Cancels a running shutdown

poweroff命令

poweroff – reboot or stop the system

reboot命令

reboot – reboot or stop the system

hwclock命令

hwclock – query and set the hardware clock (RTC)

date命令

date – print or set the system date and time

linux获取命令帮助

builtin命令:help COMMAND

外部命令:COMMAND –help

程序自带的帮助文档

官方文档

搜索引擎

在线帮助文档:info COMMAND

常用帮助:man COMMAND

man文档:分为8个章节

MANUAL SECTIONS

The standard sections of the manual include:

1      User Commands

2      System Calls

3      C Library Functions

4      Devices and Special Files

5      File Formats and Conventions

6      Games et. Al.

7      Miscellanea

8      System Administration tools and Deamons

linux文件系统简述

遵循Filesystem Hierarchy Standard(文件系统目录标准)

3c8ce6380daa33c267ccb0e2e66a02de.pngfhs-3.0.pdf The current version is 3.0. It was announced on June 3, 2015.

原创文章,作者:goal,如若转载,请注明出处:http://www.178linux.com/45843

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值