linux权威指南

linux命令

pwd

pwd=printworkingdirectory

cd

cd=changedirectory

ls

ls=listing

man=manual

$=equalstoShellcommand

Wherearewenow?Acdwithnoargumentsreturnsustoourhomedirectory.

我们到底在哪里呢?如果cd命令没有带参数将会帮忙我们返回到我们的home目录;

Bytheway,thehomedirectoryisoftenrepresentedbyatilde(~).

顺便提一句,主目录经常被替换成~符号;因此可以用~代替主目录;例如,以下命令是合法的:

cd~

Sothestring~/programsmeansthatprogramsislocatedrightunderyourhomedirectory.

cd~/test=cd/home/user_directory_name/test

Thespecialcharactersequence..refersto"thedirectoryjustabovethecurrentone."

这个特殊的字符串代表“当前目录的上一层”

Whenyouhavesuccessfullyloggedin,youwillseeaprompt.Ifyou'reroot,thismaybea

simple:#

Similarly,thermcommanddeletesfiles.Wewon'tshowitherebecausewehaven'tyetshown

howtocreateafile.

类似地,rm命令用来删除文件;我们将不会在这里展示它因为我们还没有在这里展示怎么创建一个文件;

setterm-inversescreenon

setterm-inversescreenoff

setterm-backgroudCOLOR

setterm-foregroudCOLOR

相关推荐