linux 笔记

cron:
This will check every day at 12 noon to see if it’s the last day of the month, and if so, it will run the command
00 12 * * * if [ `date +%d -d tomorrow` = 01 ] ; then ; command


linux startup procedure:
the first thing kernel does is to run the init program.
Since the init program (usually located at /sbin/init) is always the first thing to run, the kernel always assigns it PID 1. The init process is then responsible for starting all other processes on the Linux system.

the sed editor doesn’t touch the original file. Any lines you delete are only gone from the output of the sed editor. The original file still contains the ‘‘deleted’’ lines.

Negating character classes
we can use ^ to negate the characters we don't want to be included in the sentenses
sed -n ’/[^ch]at/p’ data6

asterisk:zero or more times
question mark:zero or one time
plus sign:one or more times
{m,n}:occurence times are greater or equal to m and less or equal to n
{m}:exact m times


The matching operator allows you to restrict a regular expression to a specific data field in the
records. The matching operator is the tilde symbol (~).

 

attach a picture demonstrating the memory distribution of process in the linux.

 

usually the process memory space starts at 0x0804700 and ends at 0xc0000000

 

the process memory space consists of text,data(bss(non-initialized data) and initialized global data), heap,user stack,and other sections such as shared memory section and memory map section.

commonly heap sector will move from low address to high address and stack sector will move from high address to low address.

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值