我运行 Ubuntu 12.04,由于某种原因 bash 没有保留我的命令历史记录。该~/.bash_history文件仅包含我几个月前键入的 3 个命令。
我怎样才能解决这个问题?
编辑:
这是我的相关内容.bashrc:
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it
shopt -s histappend
# for …Run Code Online (Sandbox Code Playgroud) 我最近询问了如何升级ghostscript到在 15.04 上可用但在 14.04LTS(我有)上不可用的版本。在这个站点上有许多关于不同包的几乎相同的问题,一些例子包括:
因此,我认为一般来说,了解以下信息会非常有用:是否有一种通用的自动化方法可以将软件包(包括其所有依赖项)升级到比 Ubuntu 存储库更新的版本?如果较新的 Ubuntu 版本中存在较新的版本,这是否更容易完成?
我经常通过 ssh 连接到服务器。最近我开始从它复制文件,我发现 scp 很烦人,主要是因为 bash 不能通过 ssh 自动完成。
我发现该connect to server...选项非常有用,因为我可以拖放任何东西。但是每次都要输入nautilus sftp://server(或者填对话框)然后输入用户名和密码,然后到cd 想要的文件夹就很烦了。有没有办法在一行中做到这一点,比如
nautilus ntfs://server -u user ...
我在文档中的任何地方都找不到它。