#保存一个文件到tmp # save a file to ~/tmp saveit() { cp $1 ${HOME}/tmp/${1}.saved } #交换两个文件 # switch two files (comes in handy) switchfile() { mv $1 ${1}.tmp && mv $2 $1 && mv ${1}.tmp $2 } #查看自己常用命令top n # View most commonly used commands. d...
>unalias ls 原文链接:https://rumenz.com/rumenbiji/linux-alias.html
设置Linux 别名命令 alias 永久生效的方法 直入主题,编辑.bashrc文件,该文件主要用于保存一些个性化的设置,如命令别名、路径等: vim .bashrc 执行上述命令后,如下图所示: 如上图所示,我们可以在User specific aliases and functions这一行下面新增我们的个性化配置,如设置别名: alias golog='cd /apps/srv/instance/...
linux下的查找命令which,whereis,locate which主要是用来查找命令的,而且只是在特定的目录下查找(PATH 变量指定的路径下) [root@teacher lianxi]# which mkdir 查看mkdir命令所在的路径 /bin/mkdir [root@teacher lianxi]# which alias 查看alias命令所在的路径 /usr/bin/which: no alias in (/usr/lib/qt-3.3/...
After saving our changes to the file, we’ll be able to easily SSH by specifying the host alias. 3. Using an Environment Variable An environment variable is an object that has a name and holds a value or path. Every time we start a session in Linux, the system loads configuration file...
He was first introduced to Red Hat in 2012 by way of a Red Hat Enterprise Linux-based combat system inside the USS Georgia Missile Control Center. Now that he has surfaced, he lives with his wife and son near Raleigh, where he worked as a data storage engineer before finding his way ...
man-pages (7) - conventions for writing Linux man pages [rhel@localhost ~]$ history 1 whatis man !-n:执行命令历史中的倒数第n条命令; 85 whatis man 86 history [rhel@localhost ~]$ !-2 whatis man man (1) - format and display the on-line manual pages ...
i have a linux machine where i have self hosted agent, i need to configure command alias by agent, for example i have 2 different docker daemons on the VM and i want to create in the agent01 an alias of the command docker to point to the socket of daemon1 and in the agent02...
file(1B) filebench(1) filep(1) filesync(1) filofaxp(1) find(1) find(1g) find2perl(1) findsmb(1) finger(1) fixdlsrps(1) fixfmps(1) fixmacps(1) fixmswrd.pl(1) fixproc(1) fixps(1) fixpsditps(1) fixpspps(1) fixscribeps(1) fixtpps(1) fixwfwps(1) fixwpps(1) fi...
1.1 /etc/protfile文件中添加alias映射rm和safe_rm.sh 1.2 ~/.bash_profile文件中添加alias映射rm和safe_rm.sh 1.3 safe_rm.sh同目录下生成protected_safe_rm.conf用于新增保护路径或者文件名 source /etc/profile which rm 显示alias 成功 下次登录后自动生效 ...