Skip to content

Commit a1bc7c9

Browse files
committed
update notes
1 parent 0b08706 commit a1bc7c9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

JavaKnowledge/常用命令行大全.md

+9
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,16 @@ ifconfig [网络设备] [参数]
511511
512512
513513
514+
- file命令是一个方便的小工具,能够探测文件的内部并判断文件类型:
515+
$ file .bashrc
516+
.bashrc: ASCII text
514517
518+
519+
- pkill命令可以使用程序名代替PID来终止进程,这就方便多了。除此之外,pkill命令也允许使用通配符,当系统出问题时,这是一个非常有用的工具:
520+
# pkill http*
521+
#
522+
该命令将“杀死”所有名称以http起始的进程,比如Apahce Web Server的httpd服务。
523+
警告 以root身份使用pkill命令时要格外小心。命令中的通配符很容易意外地将系统的重要进程终止。这可能会导致文件系统损坏。
515524
516525
517526

0 commit comments

Comments
 (0)