当我关闭终端会话时,它也会消失

其他Linux/Unix/BSD/OSX等发行版讨论
回复
寺島聰子
帖子: 688
注册时间: 2016-06-03 14:39
系统: debian11 mate

当我关闭终端会话时,它也会消失

#1

帖子 寺島聰子 » 2022-05-23 22:37

在过去
history -w history.txt
(将当前的历史记录保存到history.txt)
并将其保存为

history -r history.txt
(将history.txt的内容作为history加载)
并试图在新安装的debian11中重新使用它。

即使我加载了过去的历史,当我关闭终端会话时,它也会消失,我应该怎么做?

In the past
history -w history.txt
(save the current history to history.txt)
and saved it as

history -r history.txt
(load the contents of history.txt as history)
and try to reuse it in a new installation of debian11.

Even if I load the past history, it disappears when I close the terminal session, what should I do?
寺島聰子
帖子: 688
注册时间: 2016-06-03 14:39
系统: debian11 mate

Re: 当我关闭终端会话时,它也会消失

#2

帖子 寺島聰子 » 2022-05-23 22:49

すいません
访问出现异常,请刷新后重试! と出て
百度翻译が使えません。解決方法を教えてください
I'm afraid it's not directly related to linux.
访问出现异常,请刷新后重试! and out.
I can't use the Baidu Translations. Please let me know how to solve this problem.
头像
astolia
论坛版主
帖子: 6453
注册时间: 2008-09-18 13:11

Re: 当我关闭终端会话时,它也会消失

#3

帖子 astolia » 2022-05-24 9:59

代码: 全选

cp history.txt ~/.bash_history
寺島聰子
帖子: 688
注册时间: 2016-06-03 14:39
系统: debian11 mate

Re: 当我关闭终端会话时,它也会消失

#4

帖子 寺島聰子 » 2022-05-25 1:28

astolia 写了: 2022-05-24 9:59

代码: 全选

cp history.txt ~/.bash_history
できました :Cool
以前のマシンとdebianで使用していた履歴ファイルを新しいマシンに移動できますか?
Can I move my history files from my previous machine and debian to the new machine?
という質問でした。

感謝! :Smile
头像
astolia
论坛版主
帖子: 6453
注册时间: 2008-09-18 13:11

Re: 当我关闭终端会话时,它也会消失

#5

帖子 astolia » 2022-05-26 14:45

寺島聰子 写了: 2022-05-25 1:28
以前のマシンとdebianで使用していた履歴ファイルを新しいマシンに移動できますか?
Can I move my history files from my previous machine and debian to the new machine?
という質問でした。

感謝! :Smile
もちろん、通常は/homeディレクトリ全体を移動します
寺島聰子
帖子: 688
注册时间: 2016-06-03 14:39
系统: debian11 mate

Re: 当我关闭终端会话时,它也会消失

#6

帖子 寺島聰子 » 2022-05-27 11:53

もちろん、通常は/homeディレクトリ全体を移動します
新規installのdebian 11を0から構築しているのですが、本当に大変です。これほど多くの設定をしていかなければいけないのかと!
わからない点はネット検索と、busterのインストール状態と比較して一歩ずつです。
マシンの世代的にはノートのほうが5年ほど新しいのですが、自分にとっては、机・椅子・キーボード・ディスプレイなどの理由により、現在投稿文を作成中のこのデスクトップの方が使いやすく、ほとんどはこのマシンを使用です。

astoliaさんの この言葉の意味がちょっとわかりません。新規installのdebian 11に、以前使用のdebian 10の「/homeディレクトリ全体を移動」こんなことができるのですか?それで色々のソフトが使用可能なのですか?

我正在从头开始建立一个新的INSTALL debian 11,这真的很困难。 我想我必须做这么多的配置! 我不明白的是,通过在网上搜索并与破坏者的安装进行比较,一步一步地。 我之所以使用这台台式机,大部分原因是由于桌子、椅子、键盘、显示器等,对我来说更容易使用。 我不明白。 是否可以将以前的debian 10的 "整个/home目录 "移动到新的debian 11安装中? 我可以用它来使用各种软件吗? :Stop
回复