计算机系统与云计算1

时间:2019-09-04
本文章向大家介绍计算机系统与云计算1,主要包括计算机系统与云计算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@LAPTOP-TOR03L7R:~# 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@LAPTOP-TOR03L7R:~# 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