常用linux 命令和.bashrc

ssh wudi@hostname

bashrc

先修改全局的/etc/bashrc, 再考虑修改.bashrc

alias ll='ls -alF'

alias rm='rm -i' 

alias cp='cp -i'

alias mv='mv -i'

alias list='svn st -q'

alias svnmeld="svn diff --diff-cmd=meld"

(有些版本某些选项没有)export GREP_OPTIONS="--exclude=*.svn-base --exclude=*.log --exclude=cscope.* --exclude=tags --exclude=*~ --exclude=*.tmp --exclude-dir=*.svn"

source .bashrc

一:ls

    -a  --all : do not ignore entries starting with .

    -A  , --almost-all : do not list implied . and ..   

    -l : use a long listing format.

    -F, --classify: append indicator (one of */=>@|) to entries.    列出子目录时在后面加/, 可执行文件后加*。

 二: rm

    -i: prompt before every removal. 在每次删除前提示确认。

   

三: cp

    -i, --interactive: prompt before overwrite.在拷贝覆盖前提示确认。

四: mv

    -i, --interactive: prompt before overwrite. 在移动覆盖前提示确认。

原文地址:https://www.cnblogs.com/gavinwu/p/3852738.html