计算机系统与云计算1

1.有CPU和内存就是计算机

2.固态硬盘SSD 持久存储

3.src是源代码

4.文件是被命名的二进制的串

5.控制台上写东西如printf

6.scanf从标准输入(键盘)来读,标准输出(显示器)

7.stdin/stdout  即stdio

8.出错时 stderror

9.r w x 可读 可写 可执行

10.第一位是d的表示是目录(directory)

一组文件file放在一个层级里叫目录directory

11.unix 所有文件构成文件系统filesystem

12.ls -l /etc/ 在根目录下的etc目录以长的形式显示当前目录下所有文件

仅ls 显示短的文件

ls   list directory contents

root@   :~# ls -l /etc/
total 272
drwxr-xr-x 1 root root 4096 May 21 22:41 NetworkManager
drwxr-xr-x 1 root root 4096 May 21 22:40 X11
drwxr-xr-x 1 root root 4096 May 21 22:40 acpi
-rw-r--r-- 1 root root 3028 May 21 22:39 adduser.conf
drwxr-xr-x 1 root root 4096 May 21 22:51 alternatives
drwxr-xr-x 1 root root 4096 May 21 22:40 apm
drwxr-xr-x 1 root root 4096 May 21 22:41 apparmor
drwxr-xr-x 1 root root 4096 May 21 22:41 apparmor.d
drwxr-xr-x 1 root root 4096 May 21 22:41 apport
drwxr-xr-x 1 root root 4096 May 21 22:40 apt
-rw-r----- 1 root daemon 144 Feb 20 2018 at.deny
-rw-r--r-- 1 root root 2319 Apr 5 2018 bash.bashrc
-rw-r--r-- 1 root root 45 Apr 2 2018 bash_completion
drwxr-xr-x 1 root root 4096 May 21 22:42 bash_completion.d
-rw-r--r-- 1 root root 367 Jan 27 2016 bindresvport.blacklist
drwxr-xr-x 1 root root 4096 Apr 21 2018 binfmt.d
drwxr-xr-x 1 root root 4096 May 21 22:41 byobu(部分)

staff 单机 最后一次修改日期


13.命令行的环境:shell

14.pwd:查看当前目录

root@LAPTOP-TOR03L7R:~# pwd /etc/
/root

 

 15.cd+tab 改变当前目录 current directory

cd..从父目录走

cd.从当前目录走

 

 16.绝对路径:从根目录到文件的路径

17.rm remove 删除文件

rm-rf  recursive force 递归强制删除  不要轻易尝试

18.一般生成可执行文件为 a.out

-o (option) 生成可执行文件后缀为.o

 19.man+函数名  -help查阅

root@   :~# man 3 printf

结果如下


20.cat+文件名 打印该文件

 

 21.atoi convert a string to an integer

把字符串变成int

 22.overflow 溢出

23.argc 参数个数   argv[]具体参数

 24./sq 0 1 2 3 > sq_result.txt 输出到文件中

/sq 0 1 2 3 4 5 6 7 8 9 10 11 12 13 | head 只显示前十行

/sq 0 1 2 3 4 5 6 7 8 9 10 11 12 13 | tail 只显示后十行

 

 25.pipe 管道  一种特殊的文件,只在运行时存在,没有名字,可以一直连下去

 

 

 

转载于:https://www.cnblogs.com/wwqdata/p/11456334.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值