歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> 關於Linux >> Linux-命令(command)信息詳解

Linux-命令(command)信息詳解

日期:2017/3/3 17:01:54   编辑:關於Linux

命令(command)信息 詳解

本文地址: http://blog.csdn.net/caroline_wendy/article/details/22663081

測試環境: Ubuntu 12.04 + GNOME Terminal 3.4.1.1

Linux中, 命令主要包含4種: 可執行程序(executable program),shell的內置命令(builtin), shell函數(function), alias命令(別名);

type:顯示命令的類型; 格式: type command

which: 顯示可執行程序的位置; 格式: which command ; 只能顯示函數, 內置命令為空(ubuntu);

help: 顯示幫助文章; 格式: help command ; 注: help cd時, 豎線("|")代表互斥的選項;

help選項(--help): 顯示命令的相關操作及參數; 格式: command --help;

如圖:

\

Copyright © Linux教程網 All Rights Reserved