加载中
bash: non-login shell和login shell的区别

详细介绍可以察看info bash中的INVOCATION部分。此处仅作简要总结。 The difference between a login shell and a non-login shell (info bash) login shell *) interactive login shell *)...

Linux中的session的概念

本文主要讲解Linux中session的概念。之所以写这篇文章,是因为网上大多数博客中对session的解析和理解,基本都有问题。

2014/12/26 14:42
254
shell脚本解析 -- oe-init-build-env

oe-init-build-env #!/usr/sh if [ -z "$ZSH_NAME" ] && [ "x$0" = "x./oe-init-build-env" ]; then echo "Error: This script needs to be sourced. Please run as '. ./oe-init-build-e...

2012/08/05 14:48
2.5K
count a specific char in file

chenqi@pek-qchen1-d1:~/mypro/bash/count_specific_char$ ./count.sh c count.sh 10 chenqi@pek-qchen1-d1:~/mypro/bash/count_specific_char$ ./count.sh \" count.sh 4 #!/bin/bash coun...

Introspection of a process (C programming)

Process introspection, mainly for debugging purpose. Code /* Introspection of a process */ #include <sys/types.h> #include <unistd.h> #include <stdio.h> #include <string.h> #inc...

Bash, 双引号,单引号,感叹号

当要引用一个变量的值时,一般推荐使用双引号。使用双引号除了变量名[2]前缀($)、后引符(`)和转义符(\)外,会使shell不再解释引号中其它所有的特殊字符。[3] 用双引号时$仍被当成特殊字符,允...

2012/07/19 18:17
4.8K
Bash: exec和文件描述符

echo 1234567890 > File # Write string to "File". exec 3<> File # Open "File" and assign fd 3 to it. read -n 4 <&3 # Read only 4 characters...

2012/09/26 17:49
143
chroot jail: creation and breaking out

This article introduces the concept of the chroot jail, presents a simple method of how to create one and a simple method of how to breaking one. The concept of chroot jail chro...

Linux Shell 学习(1)

1. 查看系统上可用的shell cat /etc/shells 2. 得到目前使用的shell类型 echo $SHELL ps $$ ps -p $$ 3. 查看某个命令是否是是一个shell内部命令 type [-a] [command] 4. 显示shell command...

2012/05/09 17:55
79
Linux Shell 学习(2)

1. quoting shell会自动对通配符(wildcard)和变量(variable)做扩展,还会自动进行命令替换(command substitution),这个特性很方便;但是,有时我们并不想要这种扩展。 有三种方式可以控...

2012/05/10 18:24
58
Collection of Good Articles (2)

http://www.linuxjournal.com/content/hack-and-password-cracking-gpus-part-i-setup http://www.linuxjournal.com/content/hack-and-password-cracking-gpus-part-ii-get-cracking http://...

2012/10/26 19:33
26
Linux Shell学习(5)

1. trap (用以捕捉信号) trap 'action' signal1 signal2 signalN ##set traps trap - signal1 signal2 signalN ##clear traps 2. 定义函数 e.g. root@localhost :/home/James/mypro/shell...

Linux Shell学习(4)

1. for loop for var in item1 item2 ... itemN do done for var in list-of-values do done for var in file1 file2 ... fileN do done for var in $filename do done for var in $(command...

2012/05/12 17:19
33

没有更多内容

加载失败,请刷新页面

没有更多内容

返回顶部
顶部