-
Ubuntu 18.04.1更改屏幕分辨率
所属栏目:[Linux] 日期:2021-01-31 热度:105
-
时间日期date/cal
所属栏目:[Linux] 日期:2021-01-31 热度:138
命令: date 作用: 查看下系统时间 使用: date 命令: cal 对应英文: calendar 作用: 查看日历 选项: -y:可查看一年的日历 使用: cal cal -y[详细]
-
进程命令ps/top/kill
所属栏目:[Linux] 日期:2021-01-31 热度:175
进程: 通俗的说就是?当前正在执行的一个程序 命令: ps 英文: process status 作用: 查看进程的详细状况 选项: a:显示终端上的所有进程,包括其他用户的进程 u:显示进程的详细状况 x:显示没有控制终端的进程 使用: #?查看当前用户通过终端启动的进程[详细]
-
which命令和bin目录
所属栏目:[Linux] 日期:2021-01-31 热度:131
命令: which 作用: 查看执行命令所在位置 使用: which?ls which?useradd 等等。。。 bin和sbin: 绝大多数可执行文件都保存在 /bin、/sbin、/usr/bin、/usr/sbin; /bin:(binary),是二进制执行文件目录,主要用于具体应用; /sbin:(system?binary)[详细]
-
超级用户和组管理
所属栏目:[Linux] 日期:2021-01-31 热度:132
超级用户: root账号通常用于系统的维护和管理,具有所有访问权限,一般不推荐直接使用root账号登录系统, 在Linux系统安装过程中,系统会自动创建一个?用户账号,这个默认的用户就称为“标准?用户” sudo: su?是?substitute?user的缩写,表示使用另一个用[详细]
-
echo和重定向
所属栏目:[Linux] 日期:2021-01-31 热度:106
命令: echo 作用: echo有重复的意思,会在终端中显示参数指定的文字,通常会和重定向联合使用 使用: echo?文字内容 例子: 在终端中显示hello echo?hello 命令: > 和 >> 作用: Linux允许将命令执行结果重定向到一个文件,将本应显示在终端上的内容?输[详细]
-
拷贝和移动
所属栏目:[Linux] 日期:2021-01-31 热度:62
命令: cp 对应英文: copy 作用: 复制文件或目录 选项: -f:已存在的目标文件直接覆盖,不会提示 -i:覆盖文件前提示,接着输入 y 或 n -r:若给出的源文件是目录文件,则cp将递归复制该目录下的所有子目录和文件,目标文件必须是一个目录名 用法: cp [[详细]
-
awk - Unix, Linux Command---reference
所属栏目:[Linux] 日期:2021-01-29 热度:146
http://www.tutorialspoint.com/unix_commands/awk.htm gawk - pattern scanning and processing language gawk ?[? POSIX ?or? GNU ?style options ]? -f ? program-file ?[? -- ?] file ...? gawk ?[? POSIX ?or? GNU ?style options ] [? -- ?]? program-[详细]
-
NMAP - A Stealth Port Scanner--reference
所属栏目:[Linux] 日期:2021-01-29 热度:74
http://nmap.org/bennieston-tutorial/ Nmap is a free,open-source port scanner available for both UNIX and Windows. It has an optional graphical front-end,NmapFE,and supports a wide variety of scan types,each one with different benefits and[详细]
-
Handling of asynchronous events---reference
所属栏目:[Linux] 日期:2021-01-29 热度:128
http://www.win.tue.nl/~aeb/linux/lk/lk-12.html 12.?Handling of asynchronous events One wants to be notified of various events,like data that has become available,files that have changed,and signals that have been raised. FreeBSD has the ni[详细]
-
Sed - An Introduction and Tutorial by Bruce Barnett
所属栏目:[Linux] 日期:2021-01-29 热度:200
http://www.grymoire.com/unix/sed.html Quick Links - NEW table border="1" tr Sed Pattern Flags /tr tr td a href="http://www.grymoire.com/unix/Sed.html#uh-6"gt;/g?- Global/td /tr tr td a href="http://www.grymoire.com/unix/Sed.html#uh-10a"gt;[详细]
-
Boost application performance using asynchronous I/O-ref
所属栏目:[Linux] 日期:2021-01-29 热度:52
Linux asynchronous I/O is a relatively recent addition to the Linux kernel. It's a standard feature of the 2.6 kernel,but you can find patches for 2.4. The basic idea behind AIO is to allow a process to initiate a number of I/O operations[详细]
-
Linux定时增量更新文件--转
所属栏目:[Linux] 日期:2021-01-29 热度:185
http://my.oschina.net/immk/blog/193926 动机与需求:现在有两台服务器A和B,由于A的存储随时会挂(某些原因),所以需要B机器上有A的备份,并且能够与A同步更新 一、crontab定时任务 发现了crontab这个东西 简单实践了一下,把使用的过程写到下面: 首先是[详细]
-
Getting over the dangers of rm command in Linux---reference
所属栏目:[Linux] 日期:2021-01-29 热度:98
reference:http://www.coolcoder.in/2014/01/getting-over-dangers-of-rm-command-in.html When we want to delete a directory and everything in it,we normally usually use rm -rf . However,this? is a bad habit to get into. If you make a mistake,[详细]
-
Linux 线程实现机制分析--转
所属栏目:[Linux] 日期:2021-01-28 热度:130
div class="ibm-columns" div class="ibm-col-1-1" 按照教科书上的定义,进程是资源管理的最小单位,线程是程序执行的最小单位。在操作系统设计上,从进程演化出线程,最主要的目的就是更好的支持SMP以及减小(进程/线程)上下文切换开销。 无论按照怎样的分[详细]
-
Signal Handling--ref
所属栏目:[Linux] 日期:2021-01-28 热度:63
signal is a software interrupt delivered to a process. The operating system uses signals to report exceptional situations to an executing program. Some signals report errors such as references to invalid memory addresses; others report asy[详细]
-
linux下logrotate配置和理解---转
所属栏目:[Linux] 日期:2021-01-26 热度:80
对于Linux 的系统安全来说,日志文件是极其重要的工具。系统管理员可以使用logrotate 程序用来管理系统中的最新的事件,对于Linux 的系统安全来说,日志文件是极其重要的工具。系统管理员可以使用logrotate 程序用来管理系统中的最新的事件。logrotate 还可[详细]
-
Linux 信号signal处理函数--转
所属栏目:[Linux] 日期:2021-01-26 热度:106
alarm(设置信号传送闹钟) 相关函数 signal,sleep 范例 #include void handler() {printf("hello/n");}main(){int i;signal(SIGALRM,handler);alarm(5);for(i=1;i kill(传送信号给指定的进程) 相关函数 raise,signal 表头文件 #include #include 定义函[详细]
-
linux定时任务之crontab
所属栏目:[Linux] 日期:2021-01-26 热度:197
1.使用crontab crontab -u //设定某个用户的cron服务? crontab -l //列出某个用户cron服务的详细内容? crontab -r //删除某个用户的cron服务? 2. cron表达式 基本格式?:?*??*??*??*??*??command?分?时?日?月?周?命令?第1列表示分钟1~59?每分钟用*或者?*/1表[详细]
-
Install Redis on CentOS 6.4--转
所属栏目:[Linux] 日期:2021-01-25 热度:127
h4 class="post_title"a href="http://thoughts.z-dev.org/2013/05/27/install-redis-on-centos-6-4/"gt;Install Redis on CentOS 6.4 source:http://thoughts.z-dev.org/2013/05/27/install-redis-on-centos-6-4/ We’re provisioning production machines[详细]
-
Linux df du 命令
所属栏目:[Linux] 日期:2021-01-25 热度:170
查看系统的分区使用情况,并显示文件系统的类型 : $ -hT 查看某个目录所在分区的磁盘使用情况 : $ -h nodedemo/ 输出文件系统的 inodes 信息 : $ -ih $ -hs $ -hs nodedemo/ -hs nodedemo/Dockerfile $ -hs . $ $[详细]
-
Linux ip forward
所属栏目:[Linux] 日期:2021-01-25 热度:53
. . $ systemctl restart networking . . auto ens39 iface ens39 inet static address span style="color: #800080"192.168 .span style="color: #800080"2.254 span style="color: #000000" netmask span style="color: #800080"255.255 .span style="colo[详细]
-
Linux mount 命令进阶
所属栏目:[Linux] 日期:2021-01-25 热度:140
可以将任何一个挂载点、普通目录或者文件挂载到其它的地方。 $ -p bind/bind1/ -p bind/bind2/ --bind ./bind/bind1 ./bind/bind2 $ /var/log /opt/ /var/ --bind /opt/var_log /var/log $ -o bind,ro ./bind/bind1 ./bind/ ./bind/bind2/sub1/abc $ aaa >[详细]
-
Linux mount 命令
所属栏目:[Linux] 日期:2021-01-25 热度:65
device :指定要挂载的设备,比如磁盘、光驱等。 dir :指定把文件系统挂载到哪个目录。 type :指定挂载的文件系统类型,一般不用指定,mount 命令能够自行判断。 options :指定挂载参数,比如 ro 表示以只读方式挂载文件系统。 $ -h $ /proc/filesystems[详细]
-
linux ss 命令
所属栏目:[Linux] 日期:2021-01-25 热度:119
ss 是 Socket Statistics 的缩写 。ss 命令可以用来获取 socket 统计信息,它显示的内容和 netstat 类似。但 ss 的优势在于它能够显示更多更详细的有关 TCP 和连接状态的信息,而且比 netstat 更快。当服务器的 socket 连接数量变得非常大时,无论是使用 net[详细]