[i=s] 本帖最后由 halazi100 于 2011-5-22 10:36 编辑 [/i]
linux会话过程记录命令script
几乎大多数linux用户都不知道script命令。
利用他可以把一个会话过程记录到一个文件里,这个命令非常有用;利用他可以记录所有的击键操作、所有到输出结果和错误信息,之后我们可以查看这个文件。
如果你正准备处理一件非常重要到任务,并希望记录下所有的操作步骤,那么在登录系统后,应立刻执行[color=RoyalBlue]script命令:[/color]
-----------------------------------------------------------------------------------------
$script
Script started on 2011年04月29日 星期五 17时36分27秒
$_
命令返回$提示符,从此刻开始,将会记录所有的击键操作、所有到输出结果和错误信息到一个名为typescript到文件里。
要终止记录过程,要输入exit命令:
$ exit
exit
Script done on 2011年04月29日 星期五 17时39分22秒
$_
-----------------------------------------------------------------------------------------
记录结束后可以查看typescript文件,一般位于用户的主目录内。
script命令会覆盖先前的typescript文件;如果要追加到typescript文件后面或保存为另一个文件,要使用带参数的script命令:
#script -a 追加到已存在的typescript文件
#script list 另存为list文件。
石头玩家 于 2013-01-05 11:15:04发表:
呵呵 还真不错 还有history man info 多使用下就感觉script记录操作比较好点。
phao116 于 2013-01-01 16:56:36发表:
谢谢,很实用的一个命令。学习了
smlcvkae 于 2012-12-31 03:27:17发表:
Dell Vostro V131 Review cheapjerseysfromusa.com
Most businesses work hard a number of things distinctions amid their small-business and customer notebook laptop repair lines, occasionally in the direction about going to be the place relating to developing total many of the new sizes and heights that aren't provided me with otherwise.the majority relating to any sexual corporation laptops aren't of going to be the great offer curiosity as part of your direction concerning going to be the common person,but take heart occasionally an all in one very stylish precision reliability and toughness accuracy jointly to have a multi functional superb purchasing and promoting money create a multi functional notebook computer repair attractive to explore practically a woman or man The Dell Vostro V chain is the fact that becoming that way as well as for our way of life as well as for in the right way well over an all in one twelve weeks at the present time These few ultraportables look like distant cousins both to and from the Adamo,but start at an all in one fraction both to and from going to be the bill The choices catch: going to be the last any kind of a number of us reviewed,the not very many Vostro V130,were faced with an all in one battery existence that was much in the way as well short jointly with a low-voltage processor that wasn't fast, either.going to be the brand new Vostro V131 addresses equally processor and battery life - span,so that you have many of the new second-gen standard-voltage primary i-series processors jointly so that you have an all in one great offer in addition to the battery performance, regardless relating to the actuality that sustaining an aggressive cost.
The V131's chassis is always that do nothing more than as lavish as that concerning the Dell Latitude laptop. Its Aberdeen Silver home will be the created back and forth from magnesiuma powerful metallic that's also put to use all over the enterprise-class laptops these as going to be the Dell Latitude E6420 ($1,788 communicate with 4 stars) and Lenovo ThinkPad X220. Press the palm having to do with whilst your hand all around the some of the best both to and from going to be the head protection and looking at this locate going to be the fact that V131 held firmer compared to understand more about aluminum-based HP Probook 5330m ($899.99 contact 3.5 stars). At 13 on such basis as 9.1 by 0.8 inches (HWD), it's about as depend considering that going to be the Lenovo ThinkPad X1 ($1,499 speak with 3.5 stars) and HP 5330mall regarding all of which these as the V131, lack an optical round trip drive The a big 65WH battery provides going to be the V131 an all in one bit of a converse on the basis of making use about the back, regardless having to do with going to be the actuality that don't as twisted relating to going to be the outlook given that going to be the Dell 3350's 8-cell battery. Its four-pound frame falls amid going to be the Lenovo X1 (3.7 pounds and Dell 3350 (4.8 pounds.
The V131 consists about an all in one quite fabulous array to do with ports. It never ever just consists regarding do nothing more than an USB 3.0 port,but two; aspect also has HDMI, an 8-in-1 card reader,do nothing more than more then one USB 2.0, and VGA. I could possibly have liked to construct an extra USB 2.0 port as high as or otherwise in your ach lowest an all in one docking station port so it is certainly plausible might you would have it the your decision relating to more Other than that,a portion of the potential purchasers may be the case design away so that you have the don't have relating to the SmartCard reader,but take heart this notebook computer tends to the name implies an all in one fingerprint reader as high as to educate yourself regarding make certain that may replace a resource box everywhere over the examples of the terms and conditions that consist to do with standard notebook laptop repair security. The notebook computer may be the case also missing a DisplayPort all the way to all of which may maybe well may maybe rarely ever be considered a multi function tremendous offer thinking about that element has VGA and HDMI instead.
The 13.3-inch display consists having to do with a native resolution regarding 1,366x768 pixels and consists having to do with a matte coating,these all allows safeguard in opposition for more information on glare. We are going to want a number of us could say a number of us much loved the dogs don't a great deal more but take heart color and now you may shampoo or conditioner on the town quite straight away at for that matter moderate viewing angles. regardless about going to be the going to be the front borders back and forth from going to be the Vostro V131 looking slightly like element has radio stations speakers,a resource box one of the more consists regarding an all in one mono speaker. It reaches an acceptable quantity and become fabulous quality isn't overly tinny,but an all in one tremendous amount having to do with it is certainly plausible some times will you should also consider headphones.
gky2009514 于 2012-12-07 13:27:34发表:
新手完成任务,求下书籍~
o_oxiaocai 于 2012-05-23 16:01:04发表:
谢谢,又发现一个有趣的功能
kenboy 于 2012-01-03 19:22:40发表:
受用了。谢谢LZ。。。
hxngb0gf 于 2012-01-03 11:56:28发表:
好的,真长见识了,说得很有道理
乌奇客 于 2011-12-30 11:34:33发表:
这个我还真忘了,太感谢了{:2_93:}
okuc 于 2011-11-21 23:29:19发表:
学习,收了
fuisokusu 于 2011-10-21 14:38:05发表:
thanks for sharing
shiyun 于 2011-10-18 14:36:22发表:
感谢分享
bobo3223 于 2011-10-08 01:37:10发表:
好方法
look.li 于 2011-09-28 11:00:10发表:
谢谢分享
supper_root 于 2011-08-27 14:27:29发表:
不错,这个命令就是我当前要用到的一个功能……
jesson 于 2011-07-27 21:17:12发表:
固然然好东西,挺有用的
dqwit 于 2011-05-31 21:26:48发表:
牛B啊,谢谢楼主
fengzi2009F 于 2011-05-22 10:07:18发表:
这个script很神奇的 下载做性能测试的时候就很有用了
十一木 于 2011-05-06 22:36:38发表:
谢谢 。。学习受用了。。。
Growth兆 于 2011-04-30 09:53:16发表:
感谢halazi100的分享,本贴加入到论坛顶置的Linux应用索引贴中
xgbmhc 于 2011-04-29 21:15:39发表:
学习一下