当前位置: 首页 > news >正文

网站开发人员结构找网络公司建网站每年收维护费

网站开发人员结构,找网络公司建网站每年收维护费,做ic芯片的要去哪个网站,怎样建立网站平台一、ls指令 上篇文章已经说了一点点的ls指令#xff0c;不过那还是不够的#xff0c;这篇文章会介绍更多的指令#xff0c;最起码能使用命令行进行一些简单的操作#xff0c;下面开始介绍了 ls常用选项 -a 列出目录下的所有文件#xff0c;包括以 . 开头的隐含文件。 -d…一、ls指令 上篇文章已经说了一点点的ls指令不过那还是不够的这篇文章会介绍更多的指令最起码能使用命令行进行一些简单的操作下面开始介绍了 ls常用选项 -a 列出目录下的所有文件包括以 . 开头的隐含文件。 -d 将目录象文件一样显示而不是显示其下的文件。 如ls –d 指定目录 -i 输出文件的 i 节点的索引信息。 如 ls –ai 指定文件 -k 以 k 字节的形式表示文件的大小。ls –alk 指定文件 -l 列出文件的详细信息。 -n 用数字的 UID,GID 代替名称。 介绍 UID GID -F 在每个文件名后附上一个字符以说明该文件的类型“*”表示可执行的普通文件“/”表示目录“”表 示符号链接“|”表示FIFOs“”表示套接字(sockets)。目录类型识别 -r 对目录反向排序。 -t 以时间排序。 -s 在l文件名后输出该文件的大小。大小排序如何找到目录下最大的文件 -R 列出所有子目录下的文件。(递归) -1 一行只输出一个文件。 接着就是实测这里主要说的ls -l和-a如上面所说第一个就是列出隐藏文件测试如下方代码可以看出这里是我这里是没有文件所以是0但是有两个隐藏文件是.和..也就是一个点的就是当前目录两个点就是上一级目录在每一行前面都有很多信息这里就是详细信息用法也没啥难的但是要注意的是空格比如ls -l中间是有空格的而且这些指令是可以组合的如下方代码二这个就是ls的一点用法。 [rootVM-24-9-centos ~]# ls [rootVM-24-9-centos ~]# ls -l total 0 [rootVM-24-9-centos ~]# ls -a . .. .bash_history .bash_logout .bash_profile .bashrc .cache .config .cshrc .pip .pydistutils.cfg .ssh .tcshrc [rootVM-24-9-centos ~]# ls -l -a total 52 dr-xr-x---. 6 root root 4096 Mar 23 13:10 . dr-xr-xr-x. 19 root root 4096 Mar 23 20:50 .. -rw------- 1 root root 629 Mar 23 20:50 .bash_history -rw-r--r--. 1 root root 18 Dec 29 2013 .bash_logout -rw-r--r--. 1 root root 176 Dec 29 2013 .bash_profile -rw-r--r--. 1 root root 176 Dec 29 2013 .bashrc drwxr-xr-x 3 root root 4096 Mar 7 2019 .cache drwxr-xr-x 3 root root 4096 Mar 7 2019 .config -rw-r--r--. 1 root root 100 Dec 29 2013 .cshrc drwxr-xr-x 2 root root 4096 Mar 23 13:10 .pip -rw-r--r-- 1 root root 73 Mar 23 13:10 .pydistutils.cfg drwx------ 2 root root 4096 Nov 5 2019 .ssh -rw-r--r--. 1 root root 129 Dec 29 2013 .tcshrc [rootVM-24-9-centos ~]# ^C [rootVM-24-9-centos ~]# [rootVM-24-9-centos ~]# ls -la total 52 dr-xr-x---. 6 root root 4096 Mar 23 13:10 . dr-xr-xr-x. 19 root root 4096 Mar 23 20:57 .. -rw------- 1 root root 650 Mar 23 20:50 .bash_history -rw-r--r--. 1 root root 18 Dec 29 2013 .bash_logout -rw-r--r--. 1 root root 176 Dec 29 2013 .bash_profile -rw-r--r--. 1 root root 176 Dec 29 2013 .bashrc drwxr-xr-x 3 root root 4096 Mar 7 2019 .cache drwxr-xr-x 3 root root 4096 Mar 7 2019 .config -rw-r--r--. 1 root root 100 Dec 29 2013 .cshrc drwxr-xr-x 2 root root 4096 Mar 23 13:10 .pip -rw-r--r-- 1 root root 73 Mar 23 13:10 .pydistutils.cfg drwx------ 2 root root 4096 Nov 5 2019 .ssh -rw-r--r--. 1 root root 129 Dec 29 2013 .tcshrc [rootVM-24-9-centos ~]# ls -al total 52 dr-xr-x---. 6 root root 4096 Mar 23 13:10 . dr-xr-xr-x. 19 root root 4096 Mar 23 20:57 .. -rw------- 1 root root 669 Mar 23 20:58 .bash_history -rw-r--r--. 1 root root 18 Dec 29 2013 .bash_logout -rw-r--r--. 1 root root 176 Dec 29 2013 .bash_profile -rw-r--r--. 1 root root 176 Dec 29 2013 .bashrc drwxr-xr-x 3 root root 4096 Mar 7 2019 .cache drwxr-xr-x 3 root root 4096 Mar 7 2019 .config -rw-r--r--. 1 root root 100 Dec 29 2013 .cshrc drwxr-xr-x 2 root root 4096 Mar 23 13:10 .pip -rw-r--r-- 1 root root 73 Mar 23 13:10 .pydistutils.cfg drwx------ 2 root root 4096 Nov 5 2019 .ssh -rw-r--r--. 1 root root 129 Dec 29 2013 .tcshrc [rootVM-24-9-centos ~]# ll total 0 [rootVM-24-9-centos ~]# 二、pwd指令 pwd指令就是用来查看当前所属目录也就是所在目录用法如下代码就是可以看出我用的是root就是在root目录因为我也没有创建其他的文件夹一般这个指令都是配合其他指令使用的。 [rootVM-24-9-centos ~]# pwd /root [rootVM-24-9-centos ~]# 三、cd指令 cd指令就是改变工作目录在Linux环境下可以看成是一颗树在这颗树下有许许多多的文件夹就相当于树的子节点形状大概就是下图这样。 /就是根目录下面有很多文件夹我着就随便画了几个那么接下来用代码演示如何使用这个指令并且配合pwd指令展示效果这个就是如何用cd去移动位置可以看到在根目录时在进去cd 。。时会进不去因为这是到了根目录所以无法进入了。 [rootVM-24-9-centos ~]# pwd /root [rootVM-24-9-centos ~]# cd .. [rootVM-24-9-centos /]# pwd / [rootVM-24-9-centos /]# ll total 72 lrwxrwxrwx. 1 root root 7 Mar 7 2019 bin - usr/bin dr-xr-xr-x. 5 root root 4096 Feb 19 15:49 boot drwxr-xr-x 2 root root 4096 Nov 5 2019 data drwxr-xr-x 19 root root 3040 Mar 23 13:10 dev drwxr-xr-x. 95 root root 12288 Mar 23 13:10 etc drwxr-xr-x. 3 root root 4096 Mar 23 13:10 home lrwxrwxrwx. 1 root root 7 Mar 7 2019 lib - usr/lib lrwxrwxrwx. 1 root root 9 Mar 7 2019 lib64 - usr/lib64 drwx------. 2 root root 16384 Mar 7 2019 lostfound drwxr-xr-x. 2 root root 4096 Apr 11 2018 media drwxr-xr-x. 2 root root 4096 Apr 11 2018 mnt drwxr-xr-x. 4 root root 4096 Mar 23 13:10 opt dr-xr-xr-x 107 root root 0 Mar 23 13:09 proc dr-xr-x---. 6 root root 4096 Mar 23 13:10 root drwxr-xr-x 26 root root 940 Mar 23 13:10 run lrwxrwxrwx. 1 root root 8 Mar 7 2019 sbin - usr/sbin drwxr-xr-x. 2 root root 4096 Apr 11 2018 srv dr-xr-xr-x 13 root root 0 Mar 23 13:09 sys drwxrwxrwt. 9 root root 4096 Mar 23 15:20 tmp drwxr-xr-x. 14 root root 4096 Jan 8 2021 usr drwxr-xr-x. 20 root root 4096 Jan 8 2021 var [rootVM-24-9-centos /]# cd .. [rootVM-24-9-centos /]# pwd / [rootVM-24-9-centos /]# ll total 72 lrwxrwxrwx. 1 root root 7 Mar 7 2019 bin - usr/bin dr-xr-xr-x. 5 root root 4096 Feb 19 15:49 boot drwxr-xr-x 2 root root 4096 Nov 5 2019 data drwxr-xr-x 19 root root 3040 Mar 23 13:10 dev drwxr-xr-x. 95 root root 12288 Mar 23 13:10 etc drwxr-xr-x. 3 root root 4096 Mar 23 13:10 home lrwxrwxrwx. 1 root root 7 Mar 7 2019 lib - usr/lib lrwxrwxrwx. 1 root root 9 Mar 7 2019 lib64 - usr/lib64 drwx------. 2 root root 16384 Mar 7 2019 lostfound drwxr-xr-x. 2 root root 4096 Apr 11 2018 media drwxr-xr-x. 2 root root 4096 Apr 11 2018 mnt drwxr-xr-x. 4 root root 4096 Mar 23 13:10 opt dr-xr-xr-x 107 root root 0 Mar 23 13:09 proc dr-xr-x---. 6 root root 4096 Mar 23 13:10 root drwxr-xr-x 26 root root 940 Mar 23 13:10 run lrwxrwxrwx. 1 root root 8 Mar 7 2019 sbin - usr/sbin drwxr-xr-x. 2 root root 4096 Apr 11 2018 srv dr-xr-xr-x 13 root root 0 Mar 23 21:12 sys drwxrwxrwt. 9 root root 4096 Mar 23 15:20 tmp drwxr-xr-x. 14 root root 4096 Jan 8 2021 usr drwxr-xr-x. 20 root root 4096 Jan 8 2021 var [rootVM-24-9-centos /]# cd /root [rootVM-24-9-centos ~]# pwd /root [rootVM-24-9-centos ~]# 下面这个代码就是演示一下cd的别的用法 cd .. : 返回上级目录 cd /root : 绝对路径 cd ../home : 相对路径 cd ~进入用户家目 cd -返回最近访问目录 [rootVM-24-9-centos ~]# pwd /root [rootVM-24-9-centos ~]# cd .. [rootVM-24-9-centos /]# pwd / [rootVM-24-9-centos /]# cd /root [rootVM-24-9-centos ~]# pwd /root [rootVM-24-9-centos ~]# cd ../home [rootVM-24-9-centos home]# pwd /home [rootVM-24-9-centos home]# cd - /root [rootVM-24-9-centos ~]# cd .. [rootVM-24-9-centos /]# pwd / [rootVM-24-9-centos /]# cd ~ [rootVM-24-9-centos ~]# pwd /root [rootVM-24-9-centos ~]# 四、touch指令 这个指令就是创建一个文件对就是文件不是文件夹他的常用选项如下 -a   或--timeatime或--timeaccess或--timeuse只更改存取时间。 -c   或--no-create  不建立任何文档。 -d  使用指定的日期时间而非现在的时间。 -f  此参数将忽略不予处理仅负责解决BSD版本touch指令的兼容性问题。 -m   或--timemtime或--timemodify  只更改变动时间。 -r  把指定文档或目录的日期时间统统设成和参考文档或目录的日期时间相同。 -t  使用指定的日期时间而非现在的时间。 我这里就创建了一个文本的示例代码。 [rootVM-24-9-centos ~]# pwd /root [rootVM-24-9-centos ~]# touch test.txt [rootVM-24-9-centos ~]# ls test.txt [rootVM-24-9-centos ~]# ^C [rootVM-24-9-centos ~]# 五、mkdir指令 这个就是创建 一个文件夹如下就是常用选项然后下方代码就时利用这个指令创建一个文件夹和递归创建多个文件夹的示例。 -p, --parents  可以是一个路径名称。此时若路径中的某些目录尚不存在,加上此选项后,系统将自动建立好那些尚不存在的目录,即一次可以建立多个目录 [rootVM-24-9-centos ~]# pwd /root [rootVM-24-9-centos ~]# ls test.txt [rootVM-24-9-centos ~]# mkdir test [rootVM-24-9-centos ~]# ls test test.txt [rootVM-24-9-centos ~]# mkdir -p test1/test2 [rootVM-24-9-centos ~]# ls test test1 test.txt [rootVM-24-9-centos ~]# cd test1 [rootVM-24-9-centos test1]# ls test2 [rootVM-24-9-centos test1]# 六、rmdir指令和rm指令 rmdir指令就是和mkdir相对应的指令这个指令就是删除一个文件夹但是要求是空文件 -p 当子目录被删除后如果父目录也变成空目录的话就连带父目录一起删除。 rm指令就是可以同时删除文件和目录常用选项如下 -f 即使文件属性为只读(即写保护)亦直接删除 -i 删除前逐一询问确认 -r 删除目录及其下所有文件 这个代码就是这几个指令的是用方式但是要注意的是使用rm时会问你确定要删除吗这是可以打yes和y都是同意但是no和n就是拒绝如果时-f就不会提示如下代码我有创建了文件夹然后使用rm -rf d1就没问我直接删除了。 [rootVM-24-9-centos test1]# cd .. [rootVM-24-9-centos ~]# ls test test1 test.txt [rootVM-24-9-centos ~]# rmdir test [rootVM-24-9-centos ~]# ls test1 test.txt [rootVM-24-9-centos ~]# rm test.txt rm: remove regular empty file ‘test.txt’? y [rootVM-24-9-centos ~]# ls test1 [rootVM-24-9-centos ~]# rm -r test1 rm: descend into directory ‘test1’? y rm: remove directory ‘test1/test2’? y rm: remove directory ‘test1’? y [rootVM-24-9-centos ~]# ls [rootVM-24-9-centos ~]# ll total 0 [rootVM-24-9-centos ~]# [rootVM-24-9-centos ~]# mkdir -p d1/d2 [rootVM-24-9-centos ~]# ls d1 [rootVM-24-9-centos ~]# rm -p d1 rm: invalid option -- p Try rm --help for more information. [rootVM-24-9-centos ~]# rm -rf d1 [rootVM-24-9-centos ~]# ls [rootVM-24-9-centos ~]# 七、tree指令 这个指令就是把文件夹用树状的形式展示如下方代码所示但是我在第一次使用时并没有这个指令显示没有然后我去网上插资料发现是我这个里面没有装只需要敲下下方块中的代码就可以了但是要在root权限下然后就会出现下方代码二的情况等待完成就好了。 yum install -y tree [rootVM-24-9-centos ~]# tree . -- d1|-- d2| |-- t1| |-- t2| |-- t3| |-- t4| |-- t5| -- t6|-- d3|-- d4-- d511 directories, 0 files [rootVM-24-9-centos ~]# [rootVM-24-9-centos ~]# yum install -y tree Loaded plugins: fastestmirror, langpacks Determining fastest mirrors epel | 4.7 kB 00:00:00 extras | 2.9 kB 00:00:00 os | 3.6 kB 00:00:00 updates | 2.9 kB 00:00:00 Resolving Dependencies -- Running transaction check --- Package tree.x86_64 0:1.6.0-10.el7 will be installed -- Finished Dependency ResolutionDependencies ResolvedPackage Arch Version Repository SizeInstalling:tree x86_64 1.6.0-10.el7 os 46 kTransaction SummaryInstall 1 PackageTotal download size: 46 k Installed size: 87 k Downloading packages: tree-1.6.0-10.el7.x86_64.rpm | 46 kB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transactionInstalling : tree-1.6.0-10.el7.x86_64 1/1 Verifying : tree-1.6.0-10.el7.x86_64 1/1 Installed:tree.x86_64 0:1.6.0-10.el7 Complete!八、man指令 man指令就是用来查找指令用法的因为Linux的指令有很多不可能每个都去查所以就有这个指令的出现下方就是常用选项 -k 根据关键字搜索联机帮助 num 只在第num章节找 -a 将所有章节的都显示出来比如 man printf 它缺省从第一章开始搜索知道就停止用a选项当按 下q退出他会继续往后面搜索直到所有章节都搜索完毕。 解释一下,面手册分为8章 1 是普通的命令 2 是系统调用,如open,write之类的(通过这个至少可以很方便的查到调用这个函数需要加什么头文 件) 3 是库函数,如printf,fread4是特殊文件,也就是/dev下的各种设备文件 5 是指文件的格式,比如passwd, 就会说明这个文件中各个字段的含义 6 是给游戏留的,由各个游戏自己定义 7 是附件还有一些变量,比如向environ这种全局变量在这里就有说明 8 是系统管理用的命令,这些命令只能由root使用,如ifconfig 这个指令贼牛逼甚至可以查看自己的用法测试如下截图按上下键移动按q退出接着演示一下其他的用法查一下指令的用法这里测试的是printf但是我发现我这个手册不够全然后上网搜了一下发现是缺少了需要敲下下方代码就可以了测试代码如下。 yum install -y man-pages [rootVM-24-9-centos ~]# clear [rootVM-24-9-centos ~]# man man [rootVM-24-9-centos ~]# man man [rootVM-24-9-centos ~]# man 1 printf [rootVM-24-9-centos ~]# man 2 printf No manual entry for printf in section 2 [rootVM-24-9-centos ~]# clear [rootVM-24-9-centos ~]# man 1 printf [rootVM-24-9-centos ~]# man 3 printf No manual entry for printf in section 3 [rootVM-24-9-centos ~]# yum install -y man-pages Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile Resolving Dependencies -- Running transaction check --- Package man-pages.noarch 0:3.53-5.el7 will be installed -- Finished Dependency Resolution -- Running transaction check --- Package man-pages-zh-CN.noarch 0:1.5.2-4.el7 will be installed -- Finished Dependency ResolutionDependencies ResolvedPackage Arch Version Repository SizeInstalling:man-pages noarch 3.53-5.el7 os 5.0 Mman-pages-zh-CN noarch 1.5.2-4.el7 os 2.3 MTransaction SummaryInstall 2 PackagesTotal download size: 7.3 M Installed size: 6.8 M Downloading packages: (1/2): man-pages-zh-CN-1.5.2-4.el7.noarch.rpm | 2.3 MB 00:00:00 (2/2): man-pages-3.53-5.el7.noarch.rpm | 5.0 MB 00:00:00 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Total 24 MB/s | 7.3 MB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transactionInstalling : man-pages-zh-CN-1.5.2-4.el7.noarch 1/2 Installing : man-pages-3.53-5.el7.noarch 2/2 Verifying : man-pages-3.53-5.el7.noarch 1/2 Verifying : man-pages-zh-CN-1.5.2-4.el7.noarch 2/2 Installed:man-pages.noarch 0:3.53-5.el7 man-pages-zh-CN.noarch 0:1.5.2-4.el7 Complete! [rootVM-24-9-centos ~]# man 3 printf [rootVM-24-9-centos ~]# ^C [rootVM-24-9-centos ~]# 九、nano 这个就是Linux自带的记事本可以写个二三十行代码是没有问题的所以这里就用它写一个hello nano敲下nano hello.txt就会打开记事本如下方代码这时写好就可以看到下面的^x这个需要按下ctrlx就可以保存然后跳出图二的选项选择Y回车就可以了,这是用cat就可以查看写的了这里我发现我因该写的时.c文件写成txt了不过问题不大也能演示代码如下 [rootVM-24-9-centos ~]# nano hello.txt [rootVM-24-9-centos ~]# cat hello.txt #include stdio.hint main() {printf(Hello nano\n);return 0; } [rootVM-24-9-centos ~]# 十、cp指令 这个看到我就想到了copy就是复制指令相当于正常使用的ctrlc ctrlv了常用选项如下测试代码如下。 -f 或 --force 强行复制文件或目录 不论目的文件或目录是否已经存在 -i 或 --interactive 覆盖文件之前先询问用户 -r递归处理将指定目录下的文件与子目录一并处理。若源文件或目录的形态不属于目录或符号链 接则一律视为普通文件处理 -R 或 --recursive递归处理将指定目录下的文件及子目录一并处理 [rootVM-24-9-centos ~]# pwd /root [rootVM-24-9-centos ~]# ls d1 hello.txt [rootVM-24-9-centos ~]# cp hello.txt d1 [rootVM-24-9-centos ~]# cd d1 [rootVM-24-9-centos d1]# ls d2 d3 d4 d5 hello.txt [rootVM-24-9-centos d1]# ^C [rootVM-24-9-centos d1]# 十一、mv指令 这个指令就是相当于剪切了把这个文件移到别的文件有三个功能 1. 视mv命令中第二个参数类型的不同是目标文件还是目标目录mv命令将文件重命名或将其移至一个新的目录中。 2. 当第二个参数类型是文件时mv命令完成文件重命名此时源文件只能有一个也可以是源目录名它将所给的源文件或目录重命名为给定的目标文件名。 3. 当第二个参数是已存在的目录名称时源文件或目录参数可以有多个mv命令将各参数指定的源文件均移至目标目录中。 常用选项如下测试代码及效果如下 -f force 强制的意思如果目标文件已经存在不会询问而直接覆盖 -i 若目标文件 (destination) 已经存在时就会询问是否覆盖 [rootVM-24-9-centos ~]# ls d1 hello.txt [rootVM-24-9-centos ~]# mv hello.txt d1 mv: overwrite ‘d1/hello.txt’? y [rootVM-24-9-centos ~]# ls d1 [rootVM-24-9-centos ~]# cd d1 [rootVM-24-9-centos d1]# ls d3 d4 d5 hello.txt十二、cat指令 这个指令在上面用过一次就是查看目标文件内容常用选项如下因为我不小心把上面的文件全删了所以只好再次写一个hello.c了刚好格式改了过来测试代码如下值得一提的时cat这样大是正常输出但是打成tac就是倒着输出今天就学了这么多如有错误欢迎补充。 -b 对非空输出行编号 -n 对输出的所有行编号 -s 不输出多行空行 [rootVM-24-9-centos ~]# nano hello.c [rootVM-24-9-centos ~]# ls d1 hello.c [rootVM-24-9-centos ~]# cat hello.c #include stdio.hint main() { printf(hello nano\n);return 0; } [rootVM-24-9-centos ~]# tac hello.c }return 0;printf(hello nano\n); { int main()#include stdio.h [rootVM-24-9-centos ~]#
http://www.hkea.cn/news/14322678/

相关文章:

  • 铜山区建设局招投标网站关于网站设计的书籍
  • 外贸建站新闻资讯微趋道官网手机小程序制作
  • 网站建设临沂wordpress分销平台
  • 番禺网站建设优化福田园岭网站建设
  • 网站后台数据改不了大悟网站设计
  • 网站开发毕业设计开课题目比较好的网站搭建论坛
  • 用中文模版可以做英文网站吗wordpress备份至七牛
  • 企业网站建设总结酒店网站解决方案
  • 山西运城网站建设郴州信息港网站
  • 政务公开既网站信息化建设会议wordpress设置积分阅读
  • 制作好的网站自己做电影网站需要什么
  • 简单的购物网站开发手机设计软件拉图
  • 网站与域名的区别网页制作基础教程慕课版电子版
  • 微信与与网站建设郑州建站以来
  • cms三合一网站源码wordpress 工作室主题
  • 优设设计师网站wordpress升级机制
  • 东城建设网站洛龙区网站设计建设
  • 珠海网站设计价格微信商城是什么
  • 对网站做打包备份处理代码优化
  • 做网站用方正字体可以额的深圳网站建设制作设计企业
  • 北京网站的建立的网页设计指什么
  • 买域名做网站企商百度网站建设
  • 路由器可以做网站服务器吗wordpress教程 下载
  • seo站网站建设服务哪家好 价格多少钱
  • 河南省建设银行网站长沙开发网站
  • 网站模板安装步骤搞钱的路子网站
  • 南京做网站公司地点seo技术培训泰州
  • 可以跟关键词密度过高的网站交换友情链接吗网站结构怎么优化
  • 快捷的赣州网站建设扬州网站建设制作
  • 企业网站建设怎么做嘉兴网站推广平台