Linux终端提示符PS1设置(颜色)
\d :代表日期,格式为weekday month date,例如:"Mon Aug 1"
\H :完整的主机名称。例如:我的机器名称为:fc4.linux,则这个名称就是fc4.linux
\h :仅取主机的第一个名字,如上例,则为fc4,.linux则被省略
\t :显示时间为24小时格式,如:HH:MM:SS
\T :显示时间为12小时格式
\A :显示时间为24小时格式:HH:MM
\u :当前用户的账号名称
\v :BASH的版本信息
\w :完整的工作目录名称。家目录会以 ~代替
\W :利用basename取得工作目录名称,所以只会列出最后一个目录
\# :下达的第几个命令
\$ :提示字符,如果是root时,提示符为:# ,普通用户则为:$
CentOS中关于这些:
\a an ASCII bell character (07)
\d the date in "Weekday Month Date" format (e.g., "Tue May
26")
\D{format} the format is passed to strftime(3) and the result is
inserted into the prompt string; an empty format results in a
locale-specific time representation. The braces are required
\e an ASCII escape character (033)
\h the hostname up to the first ‘.’
\H the hostname
\j the number of jobs currently managed by the shell
\l the basename of the shell’s terminal device name
\n newline
\r carriage return
\s the name of the shell, the basename of $0 (the portion
following the final slash)
\t the current time in 24-hour HH:MM:SS format
\T the current time in 12-hour HH:MM:SS format
\@ the current time in 12-hour am/pm format
\A the current time in
相关文档:
Alloca函数,用于在栈上分配内存,
gcc
的动态数组就是通过它来支持的。
中断和信号的概念是不同的,信号是发给进程的,硬中断是内核和硬件之间,都是异步的,不可预知的。
系统调用进入内核是不发生进程切换的。DIRECT_IO
不使用系统
IO
缓存,还要保证缓冲区内存不被
swap
,这个用于那些用户层进行缓存的应用程 ......
1、制作logo的方法:
首先选择一个自己喜欢的图片,然后通过GIMP软件将该图片保存为.png格式,
变换方式这个就不说了(very easy),比如保存为linuxlogo.png.
然后将该图片传入到装有Linux PC比如(ubuntu),按照以下顺序你就可以制作一个你喜欢logo
前提你必须安装以下的工具(pngtopnm,pnmquant,pnmtoplainpnm)
$ ......
1、
将文件checkout到本地目录
svn
checkout
path(path是服务器上的目录)
例如:svn
checkout svn
://192.168
.1.1
/pro/domain
简写:svn
co
2、
往版本库中添加新的文件
svn
add
file
例如:svn
add test.php(添加test.php)
svn
add *.php(添加当前目录下所有的php文件)
3、
将改动 ......