linux basic command
来源:互联网 发布:python 汉字转unicode 编辑:程序博客网 时间:2024/06/09 13:58
1 pwd,ls,cd
pwd for "find out current directory"
ls for listing directory contents
cd ../
cd - last one
cd ~ default one <=>cd
2 man cmd
an interface to the on-line reference manuals
3 ctrl shift + zoom out
ctrl - zoom in
ctrl l clear all
ctrl u clear a line cmd
4 touch establish a file at current diretory
rm file : remove file
rm -rf a(when "a" is not a empty diretory)
mkdir establish a diretory at current diretory
rmdir :remove the null diretory
mkdir -p a/b/c
* for any charater
5 cp copy
mv move
6 cat: print contents
gedit
ed: object filename start with charater "a",end by "."
w object filename (save),q for quit
nano:
tac :revert
head:n line at begin
tail:n line at end
shift+pageup/pagedown
more: space for pageup
less:ctrl+e,ctrl y
7 how to compress files
tar -cvf ab.tar a b
tar -tvf ab.tar a
gzip/bzip2(derize from uniux)=tar -z/jcvf
tar -zxvf umcompress .tar.gz
tar -jxvf umcompress all.tar.bz2
gunzip,bunzip2
8 where the file?
which,whereis,locate,find
whereis bin,source,
locate db(fast),if not update database,then use "sudo updatedb"cmd
find disk
pwd for "find out current directory"
ls for listing directory contents
cd ../
cd - last one
cd ~ default one <=>cd
2 man cmd
an interface to the on-line reference manuals
3 ctrl shift + zoom out
ctrl - zoom in
ctrl l clear all
ctrl u clear a line cmd
4 touch establish a file at current diretory
rm file : remove file
rm -rf a(when "a" is not a empty diretory)
mkdir establish a diretory at current diretory
rmdir :remove the null diretory
mkdir -p a/b/c
* for any charater
5 cp copy
mv move
6 cat: print contents
gedit
ed: object filename start with charater "a",end by "."
w object filename (save),q for quit
nano:
tac :revert
head:n line at begin
tail:n line at end
shift+pageup/pagedown
more: space for pageup
less:ctrl+e,ctrl y
7 how to compress files
tar -cvf ab.tar a b
tar -tvf ab.tar a
gzip/bzip2(derize from uniux)=tar -z/jcvf
tar -zxvf umcompress .tar.gz
tar -jxvf umcompress all.tar.bz2
gunzip,bunzip2
8 where the file?
which,whereis,locate,find
whereis bin,source,
locate db(fast),if not update database,then use "sudo updatedb"cmd
find disk
0 0
- Linux basic command
- Linux basic command
- Linux basic command
- linux basic command
- Most Basic Shell Command for Linux(Ubuntu)
- 15 Basic ‘ls’ Command Examples in Linux
- basic examples of linux netstat command
- 10 basic examples of linux netstat command
- 10 basic examples of Linux ps command
- linux_13 Basic Cat Command Examples in Linux
- windows net basic command
- Emacs basic command
- Basic Cmd Command
- nginx basic command
- django basic command
- Basic git command
- mac os terminal basic command
- Linux入门的最基本的命令: basic command 以及终端使用的快捷方式
- Leetcode - Palindrome Number
- linux disk management
- Leetcode - Container With Most Water
- centos6 YUM安装高版本lamp环境
- ListView+CheckBox实现全选和反选
- linux basic command
- 【机器学习基础】线性回归基础
- C/C++程序员应聘常见面试题
- [UBOOT] fix .rel.dyn relocations(u-boot-2011.09)
- Http协议介绍
- Spring MVC 表单处理实例
- 简洁的GO语言,未来的语言趋势?
- **(leetcode_backtracking) Combinations
- 222222222222222