VMware

本文档提供了 Linux 终端常用命令的快速查询指南,包括文件管理、目录操作、权限设置等基本命令的使用方法及示例。适用于 Linux 初学者及需要快速查阅命令的用户。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

terminal:

#

$

su ($ -----#)

su - username  (#-----$)

useradd (#)

passwd(#)

pwd  ls(list) ls -l(ll)  ls -t(time)  ls -a(all)  "." the list now ".." the father list    ("cd"( back to home); "cd."= pwd)

cd  (change the director)

~

hostname

hostname newhostname(#) (reboot -----the first hostname)

ifconfig

ping

cat / etc/sysconfig/network/(read the file)(hostname is in this file)(little contex)

more(much contex)

tail(look over from the tail)

tail -200f mini.log

head -200f mini.log

vi /etc/sysconfig/network(chang the file) 

i (insert)

esc   :wq  (esc "insert" and save changes)

esc :q!(esc but no changes will be save)

halt (shuttle down)

init 6 =reboot

remote metres: hostname ; IP; policy; passwd

remote tools: remote terminal: secureCRT (IP & hostname rejection every time u change a computer, u should make the rejection job); ftp( file transfer protocol ) FileZilla;edit file contex(),; Xmanager(remote show the window)

 "file"( file"_";dir"d"; shortcut(link)"l" )

eg:        drwxr-xr-x. 2 mini mini 6 Sep 24 16:47 Videos

           drwxr-xr-x.  ten chars  d (type)  rwx (read write excute) (mini (administrator))   r-x(read no excute)(mini(group)) r-x(others)

    r: 2^2   w:2^1   x:2^0 (6: nums of files under the dir)

man commend: know what the n=meaning of the commend

q:quit

tab: fill in the fall name of the file

#chmod (change the priority of memebers of the files(change mode))

eg:#chmod g-w filename

   #chmod o-r filename

#chmod 664 filename

$cp filename /goal- file ( cp source dest)

cp -r *-dir  ***-dir

mv src dest(move)(src and dest r not under one dir)

mv src dest (rename)(src and dest r  under one dir)

mv src dir/newname(move and rename)

rmdir (dir have to be empty)

rm(delet)

rm-f(force) 

rm -rf

mkdir -p ~/data/newdir1/newdir2

#chown mini2 /home/sysnetwork/etc/hosts

#chgrp: mini2 /home/sysnetwork/etc/hosts

 

dir: (all files):  #chmod -R  flename

#chgrp: ownername:groupname /home/sysnetwork/etc/hosts

build a new file: #touch filename.*= vi filename.*= vim filename.*

add contex: $echo addcontex >>filename.*

vi: dd(delet one row) ZZ(save) x(delet one char) o(add contex next row)

soft link( delet src) hard link(not delet src=copy)

$ ln -s filename linkname

$ln filename linkname

find ~/ -name filename

find / -name filename

find / -name filename\*(filename is not full)

 

 

  

 

转载于:https://www.cnblogs.com/rabbittail/p/7592281.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值