这里汇总一下平时用到的一些命令,方便需要的时候查询,不定期编辑
1. 计算一个字符串的md5
echo -n 'the_password' | md5sum -
引用
"-n" is supplied to force echo not to add a newline character automatically behind the string
md5sum也可以换成sha*sum,比如sha256sum等
2. There are stopped jobs.
这个消息是在推出控制台的时候碰到的,搜了下,然后才想起每次编辑某个文件又想看下log的时候,并不总是需要把vim退出:在运行某个程序的时候,按Ctrl-z可以把程序“挂起”(suspend),然后干点别的事情,然后再把程序调出来继续运行,在终端输入
jobs
可以看到被挂起的程序列表,
vivi@H0334:~$ jobs
[1]- Stopped vim
[2]+ Stopped vim c.html
然后可以输入
fg $jobid
继续运行程序,$jobid就是输入jobs出现的列表的前面那个数字
引用
Unix allows you to suspend a program you are running and then go back to it later on. This is called "job control". When you are using a program interactively, it is said to be in the "foreground"; once it is stopped (with [CTRL-Z]) it is in the "background". At this point you can put the job back into the foreground by typing "fg", or tell it to continue to run in the background with "bg". The shell gives a number to each job that is running in the background or that has been stopped. To see the list of current jobs, type "jobs". Each job will be listed, preceded by its number. The job most recently stopped is referred to as the current job and will have a + sign in front of it. You can kill a job by typing:
kill %n
where n is the number of the job. A job left running in the background will stop when it needs input from the terminal.
使用wget创建一个站点的镜像
wget -mk http://www.example.com/
分享到:
相关推荐
linux命令汇总.pwd:功能为查看当前所在目录。这是一个非常常用的命令,可以帮助用户确定当前的工作目录。 touch:功能为创建空白文件。语法为touch [选项] [文件]。这个命令可以用来快速创建一个新的空文件。 cat:...
linux命令汇总
java开发中常用的linux命令汇总,内附1920*1080图片,可做屏幕背景
linux命令汇总。Linux基础命令大全简介如下: ls:英文原意为list,功能为显示目录文件。语法为ls [-选项] [文件或目录]。常用选项包括-a(显示所有文件,包括隐藏文件)、-lh(详细信息显示)、-d(查看目录属性)...
LINUX命令汇总,LINUX命令大全,参考手册
linux命令汇总.xmind
linux 命令是对 Linux 系统进行管理的命令。对于 Linux 系统来说,无论是中央处理器、内存、磁盘驱动器、键盘、鼠标,还是用户等都是文件, Linux 系统管理的命令是它正常运行的核心。linux 命令在系统中有两种类型...
常用的Linux命令汇总
对一般常用到的Linux命令进行了简单汇总,方便大家更快的掌握常用命令,更好地在Linux环境下工作。
作为运维人员,这些常用命令不得不会,掌握这些命令,工作上会事半功倍,提供工作效率。 cd命令,用于切换当前目录,它的参数是要切换到的目录的路径,可以是绝对路径,也可以是相对路径。
把linux几乎涉及到的所有命令进行了汇总
linux 命令总结.txtlinux 命令总结.txtlinux 命令总结.txtlinux 命令总结.txt
Linux常用命令汇总,个人Linux常用命令总结笔记,涵盖Linux常用命令。
linux命令汇总
常用的Linux命令汇总(a summary of useful linux commands)
linux命令汇总
Linux常用命令汇总Linux终端命令格式终端命令格式查阅命令帮助信息-help-man常用Linux命令的基本实用学习Linux终端命令的原因常用Linux命令的基本使用自动补全其它命令查找文件演练目标软链接演练目标硬链接简介...
shell常用命令汇总汇(UNXI LINUX命令集)