這是UNIX的字符串命令:
find // name of command (in this case, "find")
arguments to 'find':
/tmp // where to look
-name core // name to look for, "core" (optional argument)
-type f // files only (not, eg, directories or files contents)
// (optional argument)
-print // output the list to standard output (STDOUT)
| // name of command (otherwise known as
// 'pipe') this is a little program that
// takes the output from a previous process
// (in this case, the output from 'find')
// and pass it to another process as input
xargs // name of command ('xargs') the program
// that will accept the output from 'print'
// as input (directed by 'pipe'). It provides
// a robust way to process indefinitely
// long lists by breaking them into smaller
// lists and passing each sublist through
// to its command argument
/bin/rm // name of command for xargs to execute
// on its input list ('rm' = remove)
-f // argument to rm, only remove files, not directories.
,這是UNIX如何工作的,它是由很多與致力於單個任務晦澀的2個字母的名字有點單一用途的程序的。將這些串聯在一起以實現更復雜的任務。
找出任何一個命令做什麼正確的方法是使用「人」命令與問題作爲參數的命令名稱,如
man find
man xargs
man rm
您將獲得描述每個輸入的詳細信息頁面選項和輸出可能性。像'xargs'這樣的名字也很容易google,但可以理解的是'find'不是(也許試試'unix find')。他們中的許多維基百科的網頁...
也許你應該得到一個體面的進入指南UNIX ...
使用的人,像「人找到」命令行查看發現的人工,也xargs的。 – auselen
你可以在手冊頁面找到所有的細節。要打印所有信息,「man find」用於查找,「man xargs」用於xargs,「man pipe」用於「|」。谷歌會給你一堆不必要的信息,這些信息會讓你更加困惑,你瞭解基本知識,你可以通過谷歌你的方式。 – WeloSefer
thanx的回覆 我讀過它,但不清楚像「符號鏈接」這樣的一些術語......那是什麼? –