【发布时间】:2012-01-15 20:16:57
【问题描述】:
这是来自 Ubuntu 的 .bashrc 的一部分(显然是相同的语言):
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
那么,那是什么语言?它有一个 fi 关键字。我怎样才能学习那种语言?我更喜欢在线教程或源代码存储库而不是书籍。
【问题讨论】:
-
它是bash。在 Google 上搜索“shell 脚本”。
-
这是
bash的shell 脚本,.bashrc在有新的终端窗口/交互式会话时运行。请注意,搜索what is bashrc之类的内容会占用大量资源。 -
这是 Unix 命令语言 - bash tldp.org/LDP/abs/html 或 1000.0000.0000 其他教程:D.
-
bash 教程位于:hypexr.org/bash_tutorial.php