Sample: | ||||
rm | remove files(remove directory -rf) | rm -rf tset | ||
mkdir | make directory | mkdir test | ||
chmod | change mode | chmod 755 *.ksh | ||
mv | move file | mv lujinan.txt test/ | ||
mv | rename file | mv lujinan.txt lujinan.txt.858 | ||
grep | search file context | grep 'for' ./* | ||
sed | text process | |||
> | redirect output &clear file content | echo "abc" > test.txt & >filename | ||
>> | append | echo "abc" >> test.txt | ||
cat | check the file contents | cat test.ksh | ||
less | per line | less test.ksh | ||
more | per screen | more test.ksh | ||
< | redirect input | |||
awk | ls -l|awk '{print $1}' | |||
cp | copy file | cp /home/userId/a.txt b.txt | ||
scp | copy file from other server to current server | scp $userId@otherServerName:/home/userId/a.txt /home/userId/b.txt | ||
control + insert | COPY | |||
shift + insert | PASTE | |||
control + c | stop the running shell | |||
~ | $HOME | |||
. | current directory | |||
/ | root | |||
touch | create 'dstamp" file and create time is May 4 21:40 | touch -t 05042140 dstamp | ||
find | find directory and files | LINUX_and_UNIX_SHELL_program->002.pdf | find pnl* | |
find . -name fileName* -exec ls -ltr {} \; | ||||
tail | tail -f fileName 动态输出文件尾部内容 | |||
diff | c | compare | ||
a | after > | |||
d | before < | |||
wc | count the file lines | |||
process | ps | use ps to see the processes that you are running | ||
bg | use ctrl-Z to suspend the foreground task, and then use bg. | |||
fg | use fg to move a background task to foreground | |||
kill | kill [-<signal>] <pid> | kill -9 <pid> 强制杀死进程 | ||
killall | killall [-<signal>] <command> | |||
Commands that tell you who you are: | ||||
whoami | displays your username | |||
id | displays your username and groups | |||
Commands that tell you who others are: | ||||
finger [<name>] | displays info for <name> | |||
id [<username>] | displays info for <username> | |||
Commands that change who you are: | ||||
su <username> | “switch user” to <username> | |||
df | (disk free)display the amount of available disk space for filesystems | |||
login | login as a different user | |||
To view a single environment variable’s value: | ||||
echo $<name > | ||||
For example: | ||||
echo $HOME | ||||
To view all environment variables at once: | ||||
sh/ksh: set | ||||
tcsh/csh: | ||||
setenv < name > <value> | ||||
Example: setenv AA aa | ||||
bash/ksh: | ||||
export < name >=<value> | ||||
There is no space on either side of ‘=’! | ||||
Example: export AA=aa | ||||
sh: | ||||
< name >=< value >; export < name > | ||||
Aliases | ||||
Syntax: | ||||
bash/ksh: | ||||
alias <text >=’< replacement >’ | ||||
tcsh/csh | ||||
alias <text > ’< replacement >’ | ||||
Eclipse | Ctrl+ H | File content search | ||
Ctrl+ space | sysout->System.out.println(); | |||
Ctil+Shift+f | format codes | |||
Ctil+Shift+t | find the jar package | |||
ls -t1|head -n 1 | find the best new file | ls pnl.* | ||
ksh: diff_nameWithJob.ksh: No such file or directory | need to convert to Unix format | |||
number=`expr $number + 1` | calculate number | |||
Flex&Eclipse | ||||
Ctrl+Shift+c | /* */ comment code |
相关推荐
UNIX常用命令 UNIX常用命令
unix 常用命令 unix常用命令 unix常用命令 unix常用命令 unix常用命令 unix常用命令 unix常用命令
UNIX操作系统常用命令
unix常用命令集unix常unix常用命令集用命令集
hpunix11常用命令,hpunix11常用命令,hpunix11常用命令
\unix常用命令集锦 \unix常用命令集锦 \unix常用命令集锦
unix常用命令,unix常用的命令,希望对各位有所帮助。
Unix常用命令大全,帮助快速学习掌握unix和linux命令,进行shell编程等
可以直接打印 共11页 第一章 目录及文件操作命令 2 1.1 ls 2 1.2 pwd 2 1.3 cd 2 1.4 mkdir 2 1.5 rmdir 2 1.6 cat 2 1.7 head 2 ...附录 UNIX 常用命令简单说明 9 命令 功能简述 9 UNIX的Shell命令详解 10
vi 常用命令 unix vi 常用命令 vi 替换命令 unix vi 命令 vi 命令模式 绝对的有用!
UNIX常用命令UNIX常用命令UNIX常用命令
UNIX常用命令。简单,实用,易懂 UNIX常用命令。简单,实用,易懂 UNIX常用命令。简单,实用,易懂
包含Unix系统的常用操作命令,以及Eample.在使用时可以方便查看相关命令
常用命令;linux以及unix的常用命令;linux;操作系统;常用命令
unix备份和压缩 命令 详解 可用作备忘
UNIX简单命令和网络常用命令简介,非常实用,方便查看
unix常用命令.docunix常用命令.docunix常用命令.docunix常用命令.docunix常用命令.doc
本命令是UNIX操作系统下的一些常用命令