acm-icpcer

 

写在前面:本博客为本人原创,严禁任何形式的转载!本博客只允许放在博客园(.cnblogs.com),如果您在其他网站看到这篇博文,请通过下面这个唯一的合法链接转到原文!

本博客全网唯一合法URL:http://www.cnblogs.com/acm-icpcer/p/8450414.html

 

 

Linux是一种乐趣

命令1:sl(Steam Locomotive)

你可能知道的命令“ls”,即list命令,并经常使用它来查看文件夹的内容,但由于误打字有时候你会产生“SL”,如何在终端得到一点点的乐趣,而不是“ 命令未找到 “。

安装sl

root@howtoing:~# apt-get install sl 		(In Debian like OS)
root@howtoing:~# yum -y install sl 		(In Red Hat like OS)
输出
root@howtoing:~# sl
sl有趣的命令

sl命令

当你键入\'LS\'而不是\'ls\'的这个命令也可使用。

 

命令2:telnet

 !  ! 它不是看起来那么复杂。 你会熟悉的telnet。 Telnet是一种面向文本的双向网络协议。这里没有什么要安装。你应该有一个Linux盒子和一个工作的互联网。

root@howtoing:~# telnet towel.blinkenlights.nl
telnet命令

telnet命令

 

命令3:fortune

怎么样让你的财富随意,有时在终端滑稽。

安装财富

root@howtoing:~# apt-get install fortune 	(for aptitude based system)
root@howtoing:~# yum install fortune 		(for yum based system)
root@howtoing:~# fortune
You\'re not my type.  For that matter, you\'re not even my species!!!
Future looks spotty.  You will spill soup in late evening.
You worry too much about your job.  Stop it.  You are not paid enough to worry.
Your love life will be... interesting.

命令4:rev(Reverse)

给它的每一个字符串,是不是很可笑。

root@howtoing:~# rev
123abc 
cba321 
xuniL eb ot nrob
born to be Linux

命令5:factor

时间为一些数学中,该命令输出一个给定号码的所有可能的因素。

root@howtoing:~# factor 5
5 
5: 5 
12 
12: 2 2 3 
1001 
1001: 7 11 13 
5442134 
5442134: 2 2721067

命令6:脚本

OK罚款这不是一个命令和脚本,但它是好的。

root@howtoing:~# for i in {1..12}; do for j in $(seq 1 $i); do echo -ne $i×$j=$((i*j))\\t;done; echo;done 
1×1=1	
2×1=2	2×2=4	
3×1=3	3×2=6	3×3=9	
4×1=4	4×2=8	4×3=12	4×4=16	
5×1=5	5×2=10	5×3=15	5×4=20	5×5=25	
6×1=6	6×2=12	6×3=18	6×4=24	6×5=30	6×6=36	
7×1=7	7×2=14	7×3=21	7×4=28	7×5=35	7×6=42	7×7=49	
8×1=8	8×2=16	8×3=24	8×4=32	8×5=40	8×6=48	

分类:

技术点:

相关文章:

  • 2021-11-05
  • 2021-11-05
  • 2021-11-05
  • 2021-11-17
  • 2021-11-05
  • 2021-11-05
  • 2021-11-15
  • 2021-11-05
猜你喜欢
  • 2021-11-05
  • 2021-11-05
  • 2021-12-27
  • 2021-11-05
  • 2021-11-05
  • 2019-12-26
  • 2021-11-05
相关资源
相似解决方案