- 浏览: 1309725 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (732)
- Java_about (146)
- Spring_Hibernate_Struts_OpenSource (27)
- linux_unix (62)
- life_sth (22)
- js_css_html_xml_nodejs (69)
- design_pattens (1)
- Perl (8)
- php_ecshop (4)
- DB_Mysql_Oracle_Informix_SqlServer (43)
- JSTL (8)
- Testing_自动化测试 (42)
- DB_ID_UUID (4)
- SEM_SEO (1)
- english_study_improvement (4)
- SVN_Git (9)
- WebService_SOA_CloudComputing (3)
- E-Commerce (1)
- Lucene_Solr (7)
- others (2)
- Regex (2)
- tomcat_jetty (8)
- zeroc-ice (1)
- java_excel (5)
- ant_maven_gradle (5)
- Unity_VR_AR_C# (2)
- jmeter (1)
- XPath_dom4j (1)
- Ruby_and_Rails (68)
- write_a_rails (17)
- manage_and_team (1)
- getting_real (1)
- ubuntu (20)
- git_and_git_flow (7)
- TODO (1)
- PM_design (2)
- Python_and_Django (8)
- NoSql_mongo_redis (24)
- C/C++ (3)
- vi_vim_gvim (0)
- c#_.Net_windows编程_dll (10)
- Php_and_Yii (9)
- Android_IOS (31)
- Mysql (5)
- sa_运维_network_硬件 (37)
- lua (2)
- c_cpp_VisualStudio (21)
- 硬件-RM-Arduino (6)
最新评论
-
shenkun58:
...
NoClassDefFoundError: Could not initialize springframework.BeanCreationException -
liaojia1:
正解,感谢
NoClassDefFoundError: Could not initialize springframework.BeanCreationException -
flingfox63:
谢谢分享,电脑上有IPV6,导致了Guard启动不了……
ruby错误解决: Address family not supported by protocol - connect(2) -
c39274936:
s = "hello_world_ruby" ...
驼峰格式和下划线格式转换_translation between camel and snake format -
yfj300:
学习了学习了学习了学习了
硬盘基本知识(磁道、扇区、柱面、磁头数、簇、MBR、DBR)
PATH is just an Environment variable like any other in a UNIX SHELL. You almost never want to replace the default value of PATH because if you're not careful your shell will forget the location of such useful commands as LS and CP. What you almost want to do is append to PATH like this (in SH, BASH or ZSH if you use one of the CSHs you're on your own.
> export PATH=$PATH:/your/new/directory
The usual place to add directories to your PATH such that the change is permanent is in the file that your shell executes when you login.
Depending on what shell you use this'll be your ZSHRC, BASHRC, TCSHRC etc.
You can edit this file and add the above command and come back and edit the list of directories any time.
After you've edited it your shell must reread the script to pick up the changes. In ZSH this is done with the dot command like SH
. ~/.zshrc
Or with source like CSH
source ~/.zshrc
Note the ~/ which always points to your home directory in all shells I know of.
If you're lazy like me, you can permanently add a directory to your path from the command line like this:
> echo 'export PATH=$PATH:/new/directory' >> ~/.zshrc
> source ~/.zshrc
-------------------
ZSHRC the last file read when U login to the zsh session~
.zshrc, the last file that ZSH reads when you open an interactive session. This includes your login session and any others such as an SSH session or an XTerm session. This is almost always found in your home directory.
.zshrc is the usual place to modify your environment permanently, such as adding directories to your PATH.
For more information take a look at the Man page for ZSH
man zsh
---------------------
The Z SHELL, a CLI program on Unix that serves as the interface between the user and the rest of the OS. See also BASH and TCSH.
Why zsh?
* tab-completion (see ZSHCompletion)
* An awesome prompt with fancy colors:
PS1='%{^[[01;36m%}yourname@%m] %{^[[00m%}'
RPROMPT='%{^[[01;32m%}%~%{^[[00m%}'
which looks like:
yourname@machine] ~/your_path
note:
* ^[ is really the esc charachter
* 01;36 is light cyan
* 01;32 is light green
* see ANSIColors
Misc info (add to ~/.zshrc)
Color Prompt - color_path %key_history)
PS1=$'%{\e[0;34m%}%B%~%b%{\e[0m%} %%%!%) '
XTerm Title - user@hostname: path
precmd () {print -Pn "\e]0;%n@%m: %~\a"}
(see man zshmisc)
* %n - username
* %m - machine name
* %M - full machine name
* %~ - path with /home/user -> ~
* %B - start bold
* %b - end bold
发表评论
-
Linux终端复用神器-Tmux使用梳理(程序员适用)
2018-07-06 18:41 610= = = 参考: Linux终 ... -
linux下awk内置函数的使用(split/substr/length)
2018-06-14 20:02 642= = = 【转】linux下awk内置函数的使用(s ... -
awk引用外部变量
2018-06-14 19:54 1196= 对引用的文做了格式修改和字符串修正。 增加了自己的 ... -
Linux下解决高并发socket最大连接数所受的各种限制(解除IO限制)
2018-06-01 10:47 3205== = - from:Linux下解决高并发sock ... -
SSH远程会话管理工具-screen使用教程
2018-04-11 18:08 702= 朝花夕拾:screen。尤其在远程一个黑盒,不能有多 ... -
rpm命令总结-rpm常用命令-rpm安装源后怎么删除-yum安装怎么降低版本
2018-04-10 20:39 1357= = = rpm命令总结 参考:http://ma ... -
.repo文件共存与优先级,.repo文件的修改,https的repo改成http
2018-03-29 17:16 1303= .repo文件共存与优先 ... -
yum是很么?repo文件详解,epel简介,yum源的更换,repo和epel区别
2018-03-29 17:12 2449= yum是很么?repo文件详解,epel简介,yum ... -
centos_官方源、镜像源汇总
2018-03-29 16:34 1244= = 站点版 (一)、企业站 ... -
国内yum源的安装(163,阿里云,epel)
2018-03-29 16:20 933= 国内yum源的安装(163,阿里云,epel) ... -
同步文件:sersync+rsync原理及部署
2017-09-05 19:42 1227= = = 一、为什么要用rsync+sersy ... -
无人值守安装操作系统
2017-07-17 16:47 1186= 无人值守安装操作系统,对运维来说,很节约生命。 1 ... -
Linux系统下常用日志分析工具:Logcheck简介
2017-07-17 16:15 1687= = = from:http://os.51cto ... -
linux下logrotate 配置和理解
2017-07-17 16:09 961= = = 对于Linux 的系统安全来说,日志文件 ... -
centos 查看版本(转)
2016-12-23 18:58 501centos 查看版本(转) 有以下命令可以查看 ... -
wget下载https文件
2016-12-01 22:27 1627wget --no-check-certifica ... -
利用Linux命令行进行文本按行去重并按重复次数排序
2016-08-26 19:22 788利用Linux命令行进行文本按行去重并按重复次数排序 ht ... -
【Apache ZooKeeper】命令行zkCli.sh使用指南
2016-07-22 20:32 8658from:http://blog.sina.com. ... -
linux nc命令常用用法
2016-07-22 20:26 917from:http://my.oschina.net/ ... -
如何修改Linux命令提示符
2016-07-22 20:16 839无颜色常用:export $PS1="[\u@\h ...
相关推荐
#define CONFIG_USE_USB_BUFFER_ALLOC_TX 1 // Trade-off: For TX path, improve stability on some platforms, but may cause performance degrade on other platforms. //#define CONFIG_USE_USB_BUFFER_ALLOC_RX ...
全志R16平台编译linux系统V1.0.txt 2017/4/11 13:36 (编译请使用编译android的lichee的选项编译生成的.config文件,不然直接编译会报错!!!!) rootroot@cm-System-Product-Name:/home/wwt/linux_r16$ tar...
集合了 所有的 Unix命令大全 登陆服务器时输入 公帐号 openlab-open123 telnet 192.168.0.23 自己帐号 sd08077-you0 ftp工具 192.168.0.202 tools-toolss 老师测评网址 http://172.16.0.198:8080/poll/ 各个 ...
For more information on setting file permissions, see "Modifying Linux, Unix, and Mac file permissions" (http://drupal.org/node/202483) or "Modifying Windows file permissions" ...
On Windows, you can use the same process as Linux/Unix systems. Extract the archive to a desired location, such as `C:\Program Files`. Set the `M2_HOME` environment variable to the extracted directory...
Update aapt manually or use package r05-ibot via downloading Mac, Windows or Linux Remove framework file $HOME/apktool/framework/1.apk Intermediate Framework Files As you probably know, Android ...
Converting HTML Documents to Texton a Unix Terminal Chapter 2. Files Introduction Recipe 2.1. Reading from a File Recipe 2.2. Writing to a File Recipe 2.3. Searching and Replacing Text in a...
Redhat Linux 9.0 users should use the following setting to avoid stability problems: export LD_ASSUME_KERNEL=2.4.1 There are some Linux bugs reported against the NIO sendfile behavior, make sure you ...
To guarantee uniqueness, they should be based on the full path in a project's source tree. For example, the file foo/src/bar/baz.h in project foo should have the following guard: #ifndef FOO_BAR_BAZ...
PEP 519: Adding a file system path protocol PEP 495: Local Time Disambiguation PEP 529: Change Windows filesystem encoding to UTF-8 PEP 528: Change Windows console encoding to UTF-8 PEP 520: ...
23.8. Using the ApplicationRunner or CommandLineRunner 23.9. Application Exit 23.10. Admin Features 24. Externalized Configuration 24.1. Configuring Random Values 24.2. Accessing Command Line ...