- 博客(14)
- 资源 (3)
- 收藏
- 关注
原创 Linux学习笔记14 sed,locate,find
1.sed默认不编辑原文件,仅对模式控件中的数据做处理sed ‘AddressCommand’ file…地址命令格式Address:StartLine,EndLine 例如1,100(1-100行) $: 最后一行 $-1: 倒数第二行/Pattern(RegExp)/ 正则表达式/pattern1/,/pattern2/ 第一次被pattern1匹配到的行开始
2017-03-26 21:06:48
555
原创 Linux学习笔记13 grep,egrep,bash变量
1.chown 改变文件属主只有管理员能执行该命令 chown USERNAME file,…. chown USERNAME:GROUPNAME file,…选项R: 修改目录及其内部文件的属主--reference=/path/to/file: 修改属主,属组和指定文件一样例子/tmp/a123文件:[root@localhost tmp]# ls -l /tmp/a123-rw-r
2017-03-09 11:21:34
574
原创 Linux学习笔记12 chown,chgrp,chown
chown 改变文件属主只有管理员能执行该命令 chown USERNAME file,…. chown USERNAME:GROUPNAME file,…选项R: 修改目录及其内部文件的属主--reference=/path/to/file: 修改属主,属组和指定文件一样例子/tmp/a123文件:[root@localhost tmp]# ls -l /tmp/a123-rw-r--
2017-02-23 14:53:54
319
原创 Linux学习笔记11 usermod,chsh,chfn,passwd,pwck,groupadd,groupmod,groupdel,newgrp,chage
linux
2017-02-22 17:29:40
650
原创 Linux学习笔记10 权限,/etc/passwd,/etc/shadow,useradd,userdel,id,finger
文件权限linux文件的三种身份:拥有者群主其他人文件三种权限: r:读取权限,数字代号为”4”。 w:写入权限,数字代号为”2”。 x:执行或切换权限,数字代号为”1”0 000 —: 无权限 1 001 –x: 执行 2 010 -w-: 写 3 011 -wx: 写和执行 4 100 r–: 只读 5 101 r-x: 读和执行 6 110 rw-: 读写 7 11
2017-02-21 11:05:39
2011
原创 Linux学习笔记9 alias, unalias,命令结果替换,文件通配符
1.alias 命令别名例子不带参数选项的别名不需要引号:[root@localhost ~]# alias cls=clear带参数的别名: [root@localhost ~]# alias cdnet='cd /etc/sysconfig/network-scripts'[root@localhost ~]# cdnet[root@localhost network-scripts]# p
2017-02-16 13:37:22
524
原创 Linux学习笔记8 history
命令行编辑光标跳转 Ctrl+a: 跳至命令行首 Ctrl+e: 跳至命令行首 Ctrl+u: 删除光标至命令行首的内容 Ctrl+k: 删除光标至命令行尾的内容 Ctrl+l: 清屏history: 命令历史
2017-02-15 22:07:28
301
原创 Linux学习笔记7 cut,sort,uniq,wc,tr
1.cut选项-d --delimiter: 指定分隔符(默认是空格)-f --field: 指定要显示的字段例子查看/etc/passwd的内容[root@localhost tmp]# cat /etc/passwdroot:x:0:0:root:/root:/bin/bashbin:x:1:1:bin:/bin:/sbin/nologindaemon:x:2:2:daemon:/s
2017-02-15 17:29:02
324
原创 Linux学习笔记6 cat,tac,more,less,head,tail
cat 查看文本内容选项-n: 显示行号[root@localhost tmp]# cat -n /etc/issue 1 CentOS release 6.8 (Final) 2 Kernel \r on an \m 3-E: 显示行尾结束符$[root@localhost tmp]# cat -E /etc/issueCentOS release 6.
2017-02-15 16:18:09
308
原创 Linux学习笔记5 cp,mv,install
1.cp 拷贝文件cp SOURCE DEST选项-R -r --recursive: 递归复制目录-f: 强行复制-i: –interactive 询问是否覆盖-p --preserve: 保留原文件的mode,ownership,timestamps 权限,属主,属组,时间戳-L --dereference: cp默认选项 复制链接指向的文件 -P --no-dereference
2017-02-15 14:22:04
228
原创 Linux学习笔记4 file,文件系统,mkdir,tree,rm,rmdir,touch
file命令通过查看文件的头部信息来获取文件类型和编码格式 可执行文件格式:Windows: PELinux: ELF(Executable and Linkable Format)文件系统:rootfs: 根文件系统FHS(Filesystem Hierarchy Standard): 多数Linux版本采用这种文件组织形式/boot: 系统启动相关的文件,如内核、initrd、以及gr
2017-02-14 15:04:33
412
原创 Linux学习笔记3 date,help,man,info,whatis,which,clock,hwclock,cal,echo,printf
date: 时间管理
2017-02-13 17:21:57
530
原创 Linux学习笔记2 shebang,ls,pwd,cd,type
1.shebang符号#!如果脚本文件中没有#!这一行,那么它执行时会默认用当前Shell去解释这个脚本(即:$SHELL环境变量),例如:test.sh#!/bin/bashecho "hello, world."echo "hello, ${1}.给文件加入执行权限chmod a+x test.sh执行文件./test.sh Jay 结果为:hello, world. hello, Ja
2017-02-13 14:10:48
412
原创 Linux学习笔记1 命令,su,passwd
1. linux基本原则由目标单一的小程序组成一切皆文件尽量避免捕获用户接口配置文件保存为纯文本格式2.linux接口格式GUI: Graphical User Interface 图形化界面 Gnome: c语言编写KDE: c++编写XFaceCLI: Command Line Interface 命令行界面 终端shell的列表: shbash(学习中主要使用的she
2017-02-13 11:42:16
705
redis_in_Action
2014-01-06
cross-platform-desktop-app-development.pdf
2018-06-15
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅