随笔分类 -  CommandLine--linux/unix

摘要:http://blog.csdn.net/netmicrobe/article/details/1269431JMF 简述JMF,Java Media Framework.JMF是Java中处理多媒体资源(audio,video,etc.)的一套API。这个扩展包提供多媒体资源播放、传输、编码解码等功能。JMF的框架结构:JMF ArchitectureTime ModelTime 对象表示一个时间点,精确道十亿分之一妙(nanosecond)。Clock接口定义了基本的定时和同步操作,用来控制多媒体数据表现。TimeBase类似手表的石英振荡器。Clock的MediaTime记录媒体数据当前 阅读全文
posted @ 2012-05-30 16:00 kelin1314 阅读(347) 评论(0) 推荐(0)
摘要:目录的拷贝与删除.目录的归档与压缩.查看目录和文件的大小.重定向.查看文件内容# 目录的拷贝与删除cp -R TUROIAL /tmp/.ls /tmp/TUROIAL/rm -R /tmp/TUROIAL/# 目录的归档与压缩tar cvf /tmp/tutorial.tar TUTORIAL# 参数说明c 表示创建 (create),它用来告诉 tar 创建一个新的存档。 v 表示详细 (verbose),它用来告诉 tar 显示加入到存档的每个文件的清单。 f 表示文件 (file),它用来告诉 tar 将存档写入到文件而不是设备。cd /tmptar xvf tutorial.tarr 阅读全文
posted @ 2012-05-30 15:58 kelin1314 阅读(268) 评论(0) 推荐(0)
摘要:http://www.ehow.com/how_7738270_tutorial-aix-unix.html InstructionsBeginning Basics1 Log on as a user and change your password.On the operating system (OS) prompt, which is "%" for C shell, type the following command:%kpasswdThis will prompt you for the old password (given by your system a 阅读全文
posted @ 2012-05-30 14:13 kelin1314 阅读(293) 评论(0) 推荐(0)
摘要:单方括号的test命令 通常用内置的test命令来测试表达式的值,test命令也被链接到方括号上。这样,既可以使用单独的test命令,也可以通过把表达式用单方括号括起来,来测试表达式的值。在用test命令或方括号测试表达式时,表达式中的shell元字符不会被扩展。由于要对变量进行单词分离,因此包含空白符的字符串必须用引号括起来(参见范例14-16)。双方括号的test命令 2.x版bash中,用双方括号 [[ ]](内置的test复合命令)来测试表达式的值,其中,对变量不进行单词分离,但可以通过元字符扩展进行模式匹配。包含空白符的字符串必须用引号括起来。如果一个字符串(不管含不含空白符)仅仅是 阅读全文
posted @ 2011-02-25 10:23 kelin1314 阅读(249) 评论(0) 推荐(0)
摘要:please notice that the string appended to grep command should be piple or file name, should not be just a string.of course you can exploit the temp file for your resolution as possible as you can.dos copy --> right clickBelow is an example:1#!/bin/bash23#------------------------------------------ 阅读全文
posted @ 2011-02-24 17:50 kelin1314 阅读(226) 评论(0) 推荐(0)
摘要:http://linux.about.com/library/cmd/blcmdln_expr.htmNAMEexpr - Evaluate an expression SYNOPSISexpr arg ?arg arg ...? DESCRIPTIONConcatenates arg's (adding separator spaces between them), evaluates the result as a Tcl expression, and returns the value. The operators permitted in Tcl expressions ar 阅读全文
posted @ 2011-01-11 16:31 kelin1314 阅读(996) 评论(0) 推荐(0)
摘要:Linux internal commands Linux commands Linux commands are nothing but the text written in the shell or terminal that the terminal understands. Linux commands usually performs certain specific operations such as editing a text file, making, removing and moving a directory etc. The shell or the term.. 阅读全文
posted @ 2011-01-11 10:59 kelin1314 阅读(273) 评论(0) 推荐(0)
摘要:1、先解除root锁定,为root用户设置密码 打开终端输入:sudo passwd rootPassword: <--- 输入你当前用户的密码 Enter new UNIX password: <--- 新的Root用户密码 Retype new UNIX password: <--- 重复新的Root用户密码 passwd:已成功更新密码 2、更改登陆,允许root登录 打开 系统>系统管理>登录窗口) 点“安全”选项页,选择“允许本地管理员登录”。 3、注销当前用户,以root登陆 change user:su [username]query user:whoami 阅读全文
posted @ 2011-01-11 10:57 kelin1314 阅读(467) 评论(0) 推荐(0)
摘要:http://www.panix.com/~elflord/unix/grep.htmlWhy grep ?Back to top grep is not only one of the most useful commands, but also, mastery of grep opens the gates to mastery of other tools such as awk , sed and perl . So what does it do ?Back to top grep basically searches. More precisely, grep foo file 阅读全文
posted @ 2011-01-11 10:11 kelin1314 阅读(370) 评论(0) 推荐(0)
摘要:http://beyondjhf-2008.javaeye.com/blog/579487 阅读全文
posted @ 2011-01-10 17:45 kelin1314 阅读(148) 评论(0) 推荐(0)
摘要:指令名称:chmod使用权限:所有使用者使用方式:chmod[-cfvR][--help][--version]modefile...说明:Linux/Unix的档案调用权限分为三级:档案拥有者、群组、其他。利用chmod可以藉以控制档案如何被他人所调用。参数:mode:权限设定字串,格式如下:[ugoa...][[+-=][rwxX]...][,...],其中u表示该档案的拥有者,g表示与该档案的拥有者属于同一个群体(group)者,o表示其他以外的人,a表示这三者皆是。+表示增加权限、-表示取消权限、=表示唯一设定权限。r表示可读取,w表示可写入,x表示可执行,X表示只有当该档案是个子目录 阅读全文
posted @ 2011-01-10 15:24 kelin1314 阅读(648) 评论(0) 推荐(0)
摘要:标准输入和输出重定向外壳和许多UNIX命令采取其输入从标准输入(stdin),写输出到标准输出(stdout),写错误输出到标准错误(stderr)。默认情况下,标准输入连接到终端键盘和标准输出和错误到终端屏幕。的,显示方式结束的终端文件在默认的标准输入,通常是<Ctrl-d>。本人重定向的输入/输出,例如一个文件,是通过指定的目的地的目的地所需的命令行使用重定向元字符后跟。C Shell的家庭为C shell的重定向形式家庭的有:字符行动>重定向标准输出>&重定向标准输出和标准错误<重定向标准输入>!重定向标准输出;覆盖文件,如果它存在>&a 阅读全文
posted @ 2011-01-10 15:23 kelin1314 阅读(1204) 评论(0) 推荐(0)
摘要:http://en.wikipedia.org/wiki/Unix_directory_structure(unix directory)Unix directory structureFrom Wikipedia, the free encyclopediaInUnixandUnix-likeoperating systems, theUnix directory structureis a convention forfilesystemlayout.Several attempts exist to standardize the Unix filesystem layout, such 阅读全文
posted @ 2011-01-06 18:05 kelin1314 阅读(301) 评论(0) 推荐(0)
摘要:http://www.aka.org.cn/Lectures/002/Lecture-2.1.2/index.html 阅读全文
posted @ 2011-01-06 14:32 kelin1314 阅读(141) 评论(0) 推荐(0)
摘要:unix manul pages(recommended):http://www.bigbiz.com/cgi-bin/manpage(Ftp learn by sample)http://dwardmac.pitzer.edu/dward/classes/skills/ftp/unixftp.html(ITS Quick Start)http://www.albany.edu/its/quickstarts/qs-ftp.htmlHow to use UNIX File Transfer Protocol (FTP) :http://dwardmac.pitzer.edu/dward/cla 阅读全文
posted @ 2011-01-05 11:42 kelin1314 阅读(418) 评论(0) 推荐(0)
摘要:wc -l test.txt##返回的比实际的总少一行 阅读全文
posted @ 2011-01-05 10:56 kelin1314 阅读(185) 评论(0) 推荐(0)
摘要:一、find 命令格式1、find命令的一般形式为;2、find命令的参数;3、find命令选项;4、使用exec或ok来执行shell命令;二、find命令的例子;1、查找当前用户主目录下的所有文件;2、为了在当前目录中文件属主具有读、写权限,并且文件所属组的用户和其他用户具有读权限的文件;3、为了查找系统中所有文件长度为0的普通文件,并列出它们的完整路径;4、查找/var/logs目录中更改时间在7日以前的普通文件,并在删除之前询问它们;5、为了查找系统中所有属于root组的文件;6、find命令将删除当目录中访问时间在7日以来、含有数字后缀的admin.log文件7、为了查找当前文件系统 阅读全文
posted @ 2010-12-31 17:33 kelin1314 阅读(341) 评论(0) 推荐(0)
摘要:http://www.panix.com/~elflord/unix/sed.htmlhttp://sed.sourceforge.net/sed1line_zh-CN.html(sed 单行处理)Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->-------------------------------------------------------------------------SED单行脚本快速参考(Unix流编辑器)2005年1 阅读全文
posted @ 2010-12-31 17:29 kelin1314 阅读(2510) 评论(0) 推荐(0)
摘要:一 正则表达式基本元字符集及其含义 ^ 只只匹配行首 $ 只只匹配行尾 * 只一个单字符后紧跟*,匹配0个或多个此单字符 [ ] 只匹配[ ]内字符。可以是一个单字符,也可以是字符序列。可以使用- 表示[ ]内字符序列范围,如用[ 1 - 5 ]代替[ 1 2 3 4 5 ] \ 只用来屏蔽一个元字符的特殊含义。因为有时在shell中一些元字符有 特殊含义。\可以使其失去应有意义 . 只匹配任意单字符 pattern\ 只用来匹配前面pattern出现次数。n为次数 pattern\m 只含义同上,但次数最少为n pattern\ 只含义同上,但pattern出现次数在n与m之间二 grep 阅读全文
posted @ 2010-12-31 17:23 kelin1314 阅读(842) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2010-08-24 22:41 kelin1314 阅读(5) 评论(0) 推荐(0)