linux 命令2
who
who am i
ssh scott@192.168.1.105
ps aux | grep pts/8
pwd // where are you?
Page 205
mkdir -p dir1/dir2/dir3/dir4/dir5
rm -r dir1 //deleted all directory (include subDirectory)
rmdir -p dir1/dir2/dir3/dir4/dir5 //just need type all subDirectory
PATH is important -----vbird page 205
echo $PATH
add varia
PATH= "$PATH":/root
-------------
create shortCut link the origin file
touch DeskTop/a.txt
cp -s DeskTop/a.txt .
cp -s DeskTop/a.txt b.txt
which
whereis
locate (updatedb)
find
find ~/ -name dir6.txt //need type which directory
find /home -name dir6.txt
//redirect Page 394
// >> > << < 2>> 2>
find /home -name dir6.txt >> ret.txt 2>> errRet.txt //just redirect
-------------
mount /umount:
ln [option] ..target ..DIRECTORY
help
------------
fdisk -help
---------
mkfs -t ext3
--------
mount ios image
mount -o loop /root/centos6.3_x86_64.iso /mnt/centos_dvd
umount /mnt/centos_dvd
compress / uncompress
bzip2 a.txt
bunzip2 a.txt.bz2
--------------------
touch a.txt
nano a.txt
vim a.txt
gedit a.txt
emac a.txt
--------------------
:sp /etc/a.txt
--------------
set
unset
read
array
declare
alias lm='ls -al' //bie ming
unalias lm
-----------------//hackerssa
history //list the history what you type
//Page 396
/dev/null
//do not display stderr infomation(display stdout only)
find /home -name dir6.txt > ret.txt 2> /dev/null
==========================
cat > catFile
bala bala.....
bala...
ctrl +D(terminated enter)
=========================
cat > catFile << "eof"
bala bala....
bala ...
eof (teminated by auto, when you type "eof")
standard input < << output > >>
standard error output 2> 2>>
======================
;, &&, ||
condition
===========
$?
cmd1 && cmd2 if (cmd1 == ture), so excute cmd2;
if(cmd1 != True), so do not excute
excute cmd2
cmd1 || cmd2 if (cmd1 == ture), so do not excute cmd2;
if(cmd1 != True), so excute cmd2
==================
pipe
cut //Page 401
echo $PATH //just take a look
echo $PATH | cut -d ':' -f 5 //display the fiveth info, separate by ':'
grep //Page 402 display something which need condition
ls -al /etc | less //display standard output to other
ls -al /etc | grep dir_1 //display directory which name is "dir_1"
=====================
export
//display all the infomation about login (it's important)
last
last | grep 'scott' //display login infomation as scott (account)
last | grep 'scott' //display login infomation as root
==================
sort order
sort, wc, uniq
ls | sort
ls | sort -n
ls | sort -r
ls | sort -f
ls | sort -t ':'
linux 命令2的更多相关文章
- Linux实战教学笔记04:Linux命令基础
第四节:Linux命令基础 标签(空格分隔):Linux实战教学笔记 第1章 认识操作环境 root:当前登陆的用户名 @分隔符 chensiqi:主机名 -:当前路径位置 用户的提示符 1.1 Li ...
- 像黑客一样使用 Linux 命令行
前言 之前在博客园看到一篇介绍 IntelliJ IDEA 配置的文章,它里面用的是 gif 动态图片进行展示,我觉得很不错.所以在我今天以及以后的博文中,我也会尽量使用 gif 动图进行展示.制作 ...
- 11 个很少人知道但很有用的 Linux 命令
Linux命令行吸引了大多数Linux爱好者.一个正常的Linux用户一般掌握大约50-60个命令来处理每日的任务.Linux命令和它们的转换对于Linux用户.Shell脚本程序员和管理员来说是最有 ...
- Linux命令随笔
Linux命令总结 man ==命令帮助; help ==命令的帮助(bash的内置命令); ls ==list,查看目录列表; -ld:查看目录权限; -l:(long)长格式显示属性; -F:给不 ...
- linux命令在线手册
下面几个网址有一些 Linux命令的在线手册,而且还是中文的,还可以搜索.非常方便 Linux命令手册 Linux命令大全 Linux中文man在线手册 每日一linux命令
- 常用的一些linux命令
最近接触到一些linux环境部署的事情,下面分享一些最近使用的比较频繁的一些linux命令~ 1.一次性移动多个文件到一个文件夹里 mv 被移动文件名 -t 目标文件夹 如:mv a.txt b.t ...
- 测试或运维工作过程中最常用的几个linux命令?
大家在测试工作过程中,可能会遇到需要你去服务器修改一些配置文件,譬如说某个字段的值是1 则关联老版本,是0则关联新版本,这时候你可能就需要会下vi的命令操作:或者查看session设置的时长,可能需 ...
- 每天一个 Linux 命令(21):find命令之xargs
在使用 find命令的-exec选项处理匹配到的文件时, find命令将所有匹配到的文件一起传递给exec执行.但有些系统对能够传递给exec的命令长度有限制,这样在find命令运行几分钟之后,就会出 ...
- 在windows下使用linux命令,GnuWin32的使用.
http://sourceforge.net/projects/getgnuwin32 使用过linxu的伙计估计都会喜欢上linux各种各样强大的命令如:grep, sed,awk,diff和pat ...
- 我常用的那些linux命令
我常用的那些linux命令 用linux也有些年头了,说来也忏愧,说是有些年头了,其实也还是个不长进的主.记得第一次接触linux是boss跟我说的怎么操作,什么编辑模式,按i,a,o进入编辑模式.在 ...
随机推荐
- erlang中通过ip和子网掩码,计算地址范围 【二进制和十进制的转换】
在程序中,难免用的二进制和十进制之间的转换.遇到一个场景,通过ip和子网掩码,计算地址范围. 而地址范围为:网络地址+1—— 广播地址 -1 . 网络地址即ip和子网掩码的与的位运算.广播地址为:网 ...
- git查看某一次commit里面的内容,即本次commit相对于原来的版本进行了哪些修改
1 知道commit id的话 git show commit-id 2 想要查看某次commit的某个文件进行了哪些修改 git show commit-id filename
- 给this添加属性
const f =()=>{ console.log(this) let a=5 console.log(this) console.log(this) this.ak =3} f() let ...
- visio_action
bug---沟通效率不能为负值!! https://blogs.office.com/en-us/2012/11/05/containers-and-callouts-in-visio/?eu=tru ...
- 一起来学linux:例行性任务之at和crontab
对于我们日常生活来说,有很多例行需要进行的工作,比如每天早上起床一杯水,例如家人的生日,每天的起床时间等.这性例行的工作有可能被遗忘,但是如果我们用计算机来进行提醒的话,则方便很多.这里就要介绍到Li ...
- html--<meta>设置缓存
html头文件设置常用之<meta>设置缓存 <meta http-equiv="pragma" content="no-cache"&g ...
- String源码中hashCode算法
针对java中String源码hashcode算法源码分析 /** The value is used for character storage. */ private final char val ...
- 【python】用python脚本Paramiko实现远程执行命令、下载、推送/上传文件功能
Paramiko: paramiko模块,基于SSH用于连接远程服务器并执行相关操作. SSHClient: 用于连接远程服务器并执行基本命令 SFTPClient: 用于连接远程服务器并执行上传下载 ...
- importlib模块 反射字符串的对象
通过 importlib模块 反射字符串的对象 Python 3.5.2 (default, Nov 17 2016, 17:05:23) [GCC 5.4.0 20160609] on linux ...
- win10专业版激活(亲测可用)
1.slmgr.vbs /upk 2.slmgr /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX 3.slmgr /skms zh.us.to 4.slmgr /ato