linux命令详解:
来源:互联网 发布:软件行业人均产值 编辑:程序博客网 时间:2024/05/17 06:49
2.家目录的符号用~表示。
3.linux的文件系统是一个树结构。
linux文件系统的树根成为根目录,使用符号"/"表示。
linux文件系统中使用符号".."表示上级目录。
linux文件系统中使用符号"."表示当前目录。
linux文件系统中,如果文件使用“.”开头,就表示隐藏文件
linux的路径表示方式有两种,一种是绝对路径(以”/“开头的路径),一种是相对路径
4.命令cd(change directory):跳转到其他目录
5.命令ls(list(列出目录内容)):查看目录下包含什么东西
ls -l:显示详细信息
(参数含义: -1 list one file per line)
ls -a:显示隐藏文件
(参数含义: -a, --all do not ignore entries starting with .)
6.命令pwd(print work directory 打印当前目录 显示出当前工作目录的绝对路径):显示当前所处位置的7.命令clear:清屏
8.命令mkdir(Make Directory(创建目录)):创建文件夹
mkdir -p :递归创建上级文件夹
(比如创建: mkdir test1/test2/test3 ,test1和test2和test3都没有创建,就会递归创建这三个文件夹)
(参数含义: -p, --parents no error if existing, make parent directories as needed)
9.命令touch:创建空白文件10.命令more:查看文件内容
11.命令rm(Remove(删除目录或文件)):删除文件
命令rmdir(Remove Directory(删除目录)):删除文件夹
命令rm -rf:删除文件(夹),不论层级多深,一概删除,并且不给出提示
(这里的参数: -r, -R, --recursive remove directories and their contents recursively;
-f, --force ignore nonexistent files, never prompt;)
12.命令cp(copy):复制文件,还有一个功能是创建新文件13.命令mv(move): 移动文件,还有个功能是重命名
*********************************
VI操作:
(1)当使用命令vi f1回车时,进入了vi编辑器内,处于只读状态(只能看不能写);
(2)按字母”i“(insert)或者”a“(append)就可以进入编辑状态;
(3)按键盘上的”Esc“键,再按Shift+:,进入命令状态
如果输入命令wq,意味着保存退出;
如果输入命令q!,意味着不保存退出;
*********************************
linux的权限使用9位字符表示,rwx rwx rwx
这里面r表示读权限,w表示写权限,x表示执行权限,-表示没有权限
这9位字符,每3位一组,分为3组。
第一组表示创建者的权限;
第二组表示创建者所在组的权限;
第三组表示其他人的权限;
权限还可以使用数字表示。rwx用数字表示为4+2+1=7。
新创建文件的默认权限是644;新创建文件夹的默认权限是755.
(确实,这是我新创建的文件和文件夹:
这里的d开头是文件夹,-开头是文件)
命令chmod(Change mode):修改权限,三个组分别使用u(user)、g(group)、o(other)表示,赋权限使用“+”,去掉权限使用“-”。
chmod u+x f1 //表示文件f1的创建者增加执行权限
chmod o-r f1 //表示文件f1的其他人去掉读权限
数字更改权限事例:chmod 777 tewer 格式 :chmod 数字 文件或者文件夹
chmod -R 777 test2 更改test2以及test2底下的所有文件夹和文件的权限 ,格式:chmod 参数 数字 文件夹(文件不会出错,照常执行)
(参数含义: -R, --recursive change files and directories recursively)
recursive (
英[rɪ'kɜːsɪv]美[rɪ'kɝsɪv]
- adj. [数] 递归的;循环的
-------------------------------------------------------------------linux命令参考-------------------------------------------------------------------
地址:http://blog.chinaunix.net/uid-27164517-id-3299073.html
分类: LINUX
linux常用命令的英文单词缩写
命令缩写:
ls:list(列出目录内容)
cd:Change Directory(改变目录)
su:switch user 切换用户
rpm:redhat package manager 红帽子打包管理器
pwd:print work directory 打印当前目录 显示出当前工作目录的绝对路径
ps: process status(进程状态,类似于windows的任务管理器) 常用参数:-auxf
ps -auxf 显示进程状态
df: disk free 其功能是显示磁盘可用空间数目信息及空间结点信息。换句话说,就是报告在任何安装的设备或目录中,还剩多少自由的空间。
rpm: 即RedHat Package Management,是RedHat的发明之一
rmdir:Remove Directory(删除目录)
rm:Remove(删除目录或文件)
cat: concatenate连锁 cat file1 file2>>file3把文件1和文件2的内容联合起来放到file3中
insmod: install module,载入模块
ln -s : link -soft 创建一个软链接,相当于创建一个快捷方式
mkdir:Make Directory(创建目录
touch
man: Manual
pwd:Print working directory
su:Swith user
cd:Change directory
ls:List files
ps:Process Status
mkdir:Make directory
rmdir:Remove directory
mkfs: Make file system
fsck:File system check
cat: Concatenate
uname: Unix name
df: Disk free
du: Disk usage
lsmod: List modules
mv: Move file
rm: Remove file
cp: Copy file
ln: Link files
fg: Foreground
bg: Background
chown: Change owner
chgrp: Change group
chmod: Change mode
umount: Unmount
dd: 本来应根据其功能描述“Convert an copy”命名为“cc”,但“cc”已经被用以代表“C Complier”,所以命名为“dd”
tar:Tape archive
ldd:List dynamic dependencies
insmod:Install module
rmmod:Remove module
lsmod:List module
文件结尾的"rc"(如.bashrc、.xinitrc等):Resource configuration
Knnxxx / Snnxxx(位于rcx.d目录下):K(Kill);S(Service);nn(执行顺序号);xxx(服务标识)
.a(扩展名a):Archive,static library
.so(扩展名so):Shared object,dynamically linked library
.o(扩展名o):Object file,complied result of C/C++ source file
RPM:Red hat package manager
dpkg:Debian package manager
apt:Advanced package tool(Debian或基于Debian的发行版中提供)
部分Linux命令缩
bin = BINaries #下面的是一些二进制程序文件
/dev = DEVices #下面的是一些硬件驱动
/etc = ETCetera #目录存放着各种系统配置文件, 类似于windows下的system
/lib = LIBrary
/proc = PROCesses
/sbin = Superuser BINaries
/tmp = TeMPorary
/usr = Unix Shared Resources
/var = VARiable ?
/boot=boot #下面的是开机启动文件
FIFO = First In, First Out
GRUB = GRand Unified Bootloader
IFS = Internal Field Seperators
LILO = LInux LOader
MySQL = My是最初作者女儿的名字,SQL = Structured Query Language
PHP = Personal Home Page Tools = PHP Hypertext Preprocessor
PS = Prompt String
Perl = "Pratical Extraction and Report Language" = "Pathologically Eclectic Rubbish Lister"
Python 得名于电视剧Monty Python's Flying Circus
Tcl = Tool Command Language
Tk = ToolKit
VT = Video Terminal
YaST = Yet Another Setup Tool
apache = "a patchy" server
apt = Advanced Packaging Tool
ar = archiver
as = assembler
awk = "Aho Weiberger and Kernighan" 三个作者的姓的第一个字母
bash = Bourne Again SHell
bc = Basic (Better) Calculator
bg = BackGround
biff = 作者Heidi Stettner在U.C.Berkely养的一条狗,喜欢对邮递员汪汪叫。
cal = CALendar
cat = CATenate
cd = Change Directory
chgrp = CHange GRouP
chmod = CHange MODe
chown = CHange OWNer
chsh = CHange SHell
cmp = compare
cobra = Common Object Request Broker Architecture
comm = common
cp = CoPy
cpio = CoPy In and Out
cpp = C Pre Processor
cron = Chronos 希腊文时间
cups = Common Unix Printing System
cvs = Current Version System
daemon = Disk And Execution MONitor
dc = Desk Calculator
dd = Disk Dump
df = Disk Free
diff = DIFFerence
dmesg = diagnostic message
du = Disk Usage
ed = editor
egrep = Extended GREP
elf = Extensible Linking Format
elm = ELectronic Mail
emacs = Editor MACroS
eval = EVALuate
ex = EXtended
exec = EXECute
fd = file descriptors
fg = ForeGround
fgrep = Fixed GREP
fmt = format
fsck = File System ChecK
fstab = FileSystem TABle
fvwm = F*** Virtual Window Manager
gawk = GNU AWK
gpg = GNU Privacy Guard
groff = GNU troff
hal = Hardware Abstraction Layer
joe = Joe's Own Editor
ksh = Korn SHell
lame = Lame Ain't an MP3 Encoder
lex = LEXical analyser
lisp = LISt Processing = Lots of Irritating Superfluous Parentheses
ln = LiNk
lpr = Line PRint
ls = list
lsof = LiSt Open Files
m4 = Macro processor Version 4
man = MANual pages
mawk = Mike Brennan's AWK
mc = Midnight Commander
mkfs = MaKe FileSystem
mknod = MaKe NODe
motd = Message of The Day
mozilla = MOsaic GodZILLa
mtab = Mount TABle
mv = MoVe
nano = Nano's ANOther editor
nawk = New AWK
nl = Number of Lines
nm = names
nohup = No HangUP
nroff = New ROFF
od = Octal Dump
passwd = PASSWorD
pg = pager
pico = PIne's message COmposition editor
pine = "Program for Internet News & Email" = "Pine is not Elm"
ping = 拟声 又 = Packet InterNet Grouper
pirntcap = PRINTer CAPability
popd = POP Directory
pr = pre
printf = PRINT Formatted
ps = Processes Status
pty = pseudo tty
pushd = PUSH Directory
pwd = Print Working Directory
rc = runcom = run command, rc还是plan9的shell
rev = REVerse
rm = ReMove
rn = Read News
roff = RunOFF
rpm = RPM Package Manager = RedHat Package Manager
rsh, rlogin, rvim中的r = Remote
rxvt = ouR XVT
seamoneky = 我
sed = Stream EDitor
seq = SEQuence
shar = SHell ARchive
slrn = S-Lang rn
ssh = Secure SHell
ssl = Secure Sockets Layer
stty = Set TTY
su = Substitute User
svn = SubVersioN
tar = Tape ARchive
tcsh = TENEX C shell
tee = T (T形水管接口)
telnet = TEminaL over Network
termcap = terminal capability
terminfo = terminal information
tex = τέχνη的缩写,希腊文art
tr = traslate
troff = Typesetter new ROFF
tsort = Topological SORT
tty = TeleTypewriter
twm = Tom's Window Manager
tz = TimeZone
udev = Userspace DEV
ulimit = User's LIMIT
umask = User's MASK
uniq = UNIQue
vi = VIsual = Very Inconvenient
vim = Vi IMproved
wall = write all
wc = Word Count
wine = WINE Is Not an Emulator
xargs = eXtended ARGuments
xdm = X Display Manager
xlfd = X Logical Font Description
xmms = X Multimedia System
xrdb = X Resources DataBase
xwd = X Window Dump
yacc = yet another compiler compiler
Fish = the Friendly Interactive SHell
su = Switch User
MIME = Multipurpose Internet Mail Extensions
ECMA = European Computer Manufacturers Association
-------------------------------------------------------------------------------补充-------------------------------------------------------------
- [linux命令]tar命令详解
- yum命令详解(linux命令)
- yum命令详解(linux命令)
- Linux命令:Vmstat命令详解
- Linux命令:usermod命令详解!
- linux命令详解:md5sum命令
- Linux命令----eval命令详解
- Linux命令:cat命令详解
- Linux命令---mpstat命令详解
- Linux命令---iostat命令详解
- linux命令详解:md5sum命令
- linux命令详解:md5sum命令
- linux命令详解:md5sum命令
- linux命令详解:md5sum命令
- linux命令详解:md5sum命令
- linux命令详解:df命令
- 【linux 命令】USERADD命令详解
- Linux命令-top命令详解
- 关于BAPI_TRANSACTION_COMMIT一点说明
- 告诉你java在&和&&在逻辑运算上差别的原因
- unity飞机大战(3)ShareSDK分享功能
- 【转载】实时传输协议介绍:RTP协议介绍、RTCP协议介绍、RTSP协议介绍
- mvc表单的两种用法
- linux命令详解:
- 使用CocoaPods
- System.Web.HttpContext.Current.Session为NULL值的问题?
- 使用RemoteViews自定义Notification
- 其实他没那么喜欢你
- DB2(Linux 64位)安装教程
- iOS-Core-Animation-Advanced-Techniques(一)
- ssdb中TTL的使用
- 动态修改上下文菜单