相关疑难解决方法(0)

有什么有用的东西可以添加到一个人的 .bashrc 中?

有什么是你不能没有的,会让我的生活变得更轻松吗?以下是我使用的一些(“磁盘空间”和“文件夹”特别方便)。

# some more ls aliases
alias ll='ls -alh'
alias la='ls -A'
alias l='ls -CFlh'
alias woo='fortune'
alias lsd="ls -alF | grep /$"

# This is GOLD for finding out what is taking so much space on your drives!
alias diskspace="du -S | sort -n -r |more"

# Command line mplayer movie watching for the win.
alias mp="mplayer -fs"

# Show me the size (sorted) of only the folders in this directory
alias folders="find . -maxdepth 1 -type d -print …
Run Code Online (Sandbox Code Playgroud)

linux bash command-line-interface dotfiles bashrc

141
推荐指数
16
解决办法
14万
查看次数

最喜欢的 Unix 命令行别名?

您最喜欢的命令行别名 (bash/sh/tcsh) 是什么?这是我的一些。

别名 lsr='ls -lrt'
别名 gon='cd $HOME/Notes'
别名 devdb='mysql -h dev --user=x --password=secret dbname'
别名 ec='rm *~'; # emacs 清理
别名 h='历史'
别名 eb='exec bash'; # Solaris 有时默认为 sh
别名先生='更多'
别名 mroe='更多'
alias qd='echo export DISPLAY=$DISPLAY'
别名 ralias='. $HOME/.alias'; # 重读别名
别名 ,,='cd ../..'
别名 ..='cd ..'
别名 c='清除'

linux unix command-line-interface

39
推荐指数
8
解决办法
7995
查看次数

交互式 shell 提示?

你最喜欢的贝壳技巧是什么?是什么让你的日常命令行使用起来更容易?

我的,对于 bash:

将此添加到您的主目录中的 .inputrc 文件中:

"\e[A": history-search-backward
"\e[B": history-search-forward
Run Code Online (Sandbox Code Playgroud)

现在,当您在提示符下开始键入时,箭头键将在您的历史记录中搜索以您已经键入的内容开头的任何其他命令。

unix shell bash

5
推荐指数
2
解决办法
989
查看次数

标签 统计

bash ×2

command-line-interface ×2

linux ×2

unix ×2

bashrc ×1

dotfiles ×1

shell ×1