unix shell命令
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
chsh -s /bin/zsh
编辑 ~/.zshrc
ZSH_THEME = "robbyrussell"
man commandxx 查看某个命令的使用说明
权限----------------------
chmod o+wx testfile 给某个目录权限
chmod 777 README.md 也可用code代替一个权限结合 7最高权限 a-b-c
chown user filelist ( "change owner")
chgrp group filelist ("change group")
passwd 改密码
cal 显示日历
PS1="[\\u@\\h]:\$PWD>\$" 修改前面提示符
ps 显示进程
kill UID 终止某个进程
ftp hostname or ip
ping
文件相关-----------------------------------------
cat 显示文件内容 vi 编辑 wc 显示 总行,总单词,总字母
cp souceA destB复制文件 rm 删除
目录-----
cd ~, cd ~username mkdir创建目录 mv移动文件夹(也可用于重命名)
过滤---------
ls -l | grep -i "carol.*aug"
sort 排序
几个高级命令 ed, sed, awk, grep
shell 编程
不写分号
`expr $a + $b` 表达式应该这样
arr1[0] = 23
if [$a == $b] *****
逻辑运算 ! -o -a,关系运算还可以 -eq -gt -ge -le ...
字符串关系运算(单独) = ,!=,-z,-n
文件状态boolean [ -b $file ] , -b,-c,-f.....
条件语句
- if...fi statement
if...else...fi statement
if...elif...else...fi statement
case http://www.tutorialspoint.com/unix/case-esac-statement.htm
循环语句http://www.tutorialspoint.com/unix/unix-shell-loops.htm
Hello Zara Ali
ret=$? #Capture value returnd by last command
unset .f function_name 删除某个函数
参考资料
http://www.tutorialspoint.com/unix/unix-processes.htm
git资料
http://git.oschina.net/progit/index.html
unix shell命令的更多相关文章
- KoaHub.JS用于Node.js的可移植Unix shell命令程序代码
shelljs Portable Unix shell commands for Node.js ShellJS - Unix shell commands for Node.js Shell ...
- 【转】Hadoop FS Shell命令
FS Shell 调用文件系统(FS)Shell命令应使用 bin/hadoop fs <args> 的形式. 所有的的FS shell命令使用URI路径作为参数.URI格式是scheme ...
- Hadoop Shell命令字典(可收藏)
可以带着下面问题来阅读: 1.chmod与chown的区别是什麽?2.cat将路径指定文件的内容输出到哪里?3.cp能否是不同之间复制?4.hdfs如何查看文件大小?5.hdfs如何合并文件?6.如何 ...
- Hadoop Shell命令(基于linux操作系统上传下载文件到hdfs文件系统基本命令学习)
Apache-->hadoop的官网文档命令学习:http://hadoop.apache.org/docs/r1.0.4/cn/hdfs_shell.html FS Shell 调用文件系统( ...
- Hadoop shell命令
1.FS Shell 调用文件系统(FS)shell命令应使用bin/hadoop fs <args>的形式.所有的的FS shell命令使用URI路径作为参数.URI格式是scheme: ...
- FS Shell命令手册
1. FS Shell 1.1 简介 调用文件系统(FS)Shell命令应使用 bin/hadoop fs <args>的形式. 所有的的FS shell命令使用URI ...
- Hadoop-2.2.0中文文档—— Shell命令
FS Shell 调用文件系统(FS)Shell命令应使用 bin/hadoop fs <args>的形式. 全部的的FS shell命令使用URI路径作为參数.URI格式是scheme: ...
- Hadoop1.x Shell命令
refer to http://hadoop.apache.org/docs/r1.0.4/cn/hdfs_shell.html FS Shell 调用文件系统(FS)Shell命令应使用 bin/h ...
- Hadoop Shell命令字典
转载自:https://www.aboutyun.com//forum.php/?mod=viewthread&tid=6983&extra=page%3D1&page=1&a ...
随机推荐
- 推荐eclipse插件Properties Editor
需求:一般我们在做"国际化"功能时,我们需要properties中文表示方式用unicode表示.eclipse默认properties文件编辑器不方便查看,需要我们查看常常查找u ...
- jQuery学习之prop和attr的区别示例介绍
1..prop( propertyName ) 获取匹配集合中第一个元素的Property的值 2. .prop( propertyName, value ) .prop( map ) .prop( ...
- java中File类的getPath(),getAbsolutePath(),getCanonicalPath()区别
File file = new File(".\\test.txt"); System.out.println(file.getPath()); System.out.printl ...
- 项目管理的一些Tip
最近带领了一个大概150人天的项目,做一些备注: 1, 知人善用. 排期分任务的时候,要先了解每个团队成员的特点,包括技术水平.性格,看他是适合做技术难度大的模块还是适合做业务逻辑复杂的模块. 2, ...
- echarts饼图
1.添加点击事件并跳转到不同的页面 // 路径配置 require.config({ paths: { echarts: 'http://echarts.baidu.com/build/dist/' ...
- 适配各种Windows分辨率,为DPI添加感知,当在高DPI时,禁用WINFORM缩放等。
因为现在高分屏越来越多,很多windows设备必须设置高DPI,这样很容易导致WINFORM整体错位,因此我们需要自己适配.禁止缩放 在程序配置清单 mainfest中添加如下. <assemb ...
- 344. Reverse String
https://leetcode.com/problems/reverse-string/ Python语法糖爆炸时间 class Solution(object): def reverseStrin ...
- 【原创】node+express+socket搭建一个实时推送应用
技术背景 Web领域的实时推送技术,也被称作Realtime技术.这种技术要达到的目的是让用户不需要刷新浏览器就可以获得实时更新. 应用场景: 监控系统:后台硬件热插拔.LED.温度.电压发生变化 即 ...
- Java数据类型和MySql数据类型对应表
- STL heap usage
简介 heap有查找时间复杂度O(1),查找.插入.删除时间复杂度为O(logN)的特性,STL中heap相关的操作如下: make_heap() push_heap() pop_heap() sor ...