$ sudo swapon -s & /etc/fstab
[1] 4754
bash: /etc/fstab: 許可がありません
$ export LANG=en_US.utf8
[1]+ Stopped sudo swapon -s
$ export LANG=en_US.utf8
$ sudo swapon -s & /etc/fstab
[2] 4757
bash: /etc/fstab: Permission denied
$
$ export LANG=en_US.utf8
頻繁に使うこのコマンドを、端末上でヒストリーから、どうやって
出すのか?手入力では、長すぎて、記憶できない。
毎回、コピーアンドペーストのため、gmail上のメモを参照している。
よろしくお願いします
如何從終端的歷史記錄中頻繁使用此命令,如何使用
它熄滅了嗎? 通過手動輸入,記憶時間太長。
每次,我指的是複制和粘貼gmail的備忘錄。
感謝您的考慮。
從mint編輯ubuntu的/ etc / fstab,因為多引導的ubuntu幾乎不可操作
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
-
- 帖子: 688
- 注册时间: 2016-06-03 14:39
- 系统: debian11 mate
-
- 论坛版主
- 帖子: 5230
- 注册时间: 2007-01-14 16:23
Re: 從mint編輯ubuntu的/ etc / fstab,因為多引導的ubuntu幾乎不可操作
1 add to alias
2 ctrl +r
3 add to .bashrc
4 use history and !+number
in fact 1 and 3 both need to edit .bashrc
if you just need a utf8 locale permanent, just add it to .bashrc
2 ctrl +r
3 add to .bashrc
4 use history and !+number
in fact 1 and 3 both need to edit .bashrc
if you just need a utf8 locale permanent, just add it to .bashrc
-
- 论坛版主
- 帖子: 18279
- 注册时间: 2009-08-04 16:33
Re: 從mint編輯ubuntu的/ etc / fstab,因為多引導的ubuntu幾乎不可操作
Does you mean to execute command1 and command2 wheresudo swapon -s & /etc/fstab
command1 : sudo swapon -s
command2 : /etc/fstab
?
-
- 帖子: 688
- 注册时间: 2016-06-03 14:39
- 系统: debian11 mate
Re: 從mint編輯ubuntu的/ etc / fstab,因為多引導的ubuntu幾乎不可操作
一致を確認した4-2. sudo swapon -s & /etc/fstab
is the same result : /dev/sda6.
sudo swapon -s & /etc/fstab
というコマンドがあるわけでなく、以下の二つのコマンドにわかれるみたいだ。
我はそういう意味とpoloshiaoさんの英文を受け取った
沒有類似的命令,它似乎被分成以下兩個命令。我收到了這樣一個意思和poloshiao先生的英文句子。
$ sudo swapon -s
[sudo] password for m:
Filename Type Size Used Priority
/dev/sda6 partition 1478652 0 -1
$ sudo cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
#Entry for /dev/sda1 :
UUID=3fb1c77c-7d46-4243-a955-790755e6023b / ext4 errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=4fb6dfed-1bc3-477a-8170-84e156766b4c none swap sw 0 0
#gksu pluma /etc/fstab &
/dev/shm /ramdisk tmpfs size=1024m 0 0
$
-
- 帖子: 688
- 注册时间: 2016-06-03 14:39
- 系统: debian11 mate
Re: 從mint編輯ubuntu的/ etc / fstab,因為多引導的ubuntu幾乎不可操作
onlylove様。自分にとって難解の為、これからネット検索します。
ありがとうございます、謝謝
ありがとうございます、謝謝
-
- 论坛版主
- 帖子: 18279
- 注册时间: 2009-08-04 16:33
Re: 從mint編輯ubuntu的/ etc / fstab,因為多引導的ubuntu幾乎不可操作
viewtopic.php?p=3206540#p3206540
$ sudo swapon -s & /etc/fstab
[1] 4754
bash: /etc/fstab: 許可がありません
... (omitted)
viewtopic.php?p=3206548#p3206548
Does you mean to execute command1 and command2 where
command1 : sudo swapon -s
command2 : /etc/fstab
?
1. The above post did not mean to execute command1 and command2 where
command1 : sudo swapon -s
command2 : /etc/fstab
1-1. But it tried to mean :
in situation A : sudo swapon -s
and
in situation B : /etc/fstab
were the same result : /dev/sda6.
1-2. sudo ls -al /etc/fstab
-rw-r--r-- 1 root root 5363 4月 12 21:59 /etc/fstab
/etc/fstab has no executable permission x
So /etc/fstab could not be a command.
-
- 帖子: 688
- 注册时间: 2016-06-03 14:39
- 系统: debian11 mate
Re: 從mint編輯ubuntu的/ etc / fstab,因為多引導的ubuntu幾乎不可操作
かっこいい!!Cool!こんなふうにするんですね。1-2. sudo ls -al /etc/fstab
-rw-r--r-- 1 root root 5363 4月 12 21:59 /etc/fstab
/etc/fstab has no executable permission x
So /etc/fstab could not be a command.
- 附件
-
- file-permissions-explanation.png (9.09 KiB) 查看 11017 次
-
- 帖子: 688
- 注册时间: 2016-06-03 14:39
- 系统: debian11 mate
Re: 從mint編輯ubuntu的/ etc / fstab,因為多引導的ubuntu幾乎不可操作
https://qiita.com/yutat93/items/b5bb9c0366f21bcbea621 add to alias
(日文、以下機械翻訳也)
別名設置流程
1。 描述.bashrc中的別名
將別名寫入名為.bashrc的文件中。
從終端輸入vi〜/。Bashrc並用vim打開.bashrc文件。
----------------------------------------------------------------------------------------------------
#export PATH=${HOME}/bin:${PATH}
#永続化したい場合は、.bashrcに記述 隠私のため、以下の形式に
export PS1="$ "
if [ "$TERM" = "linux" ]; then export LANG=C; else export LANG=ja_JP.UTF-8; fi
~
~
~
~
~
~
~
~
~
~
"~/.bashrc" 13 lines, 222 characters
---------------------------------------------------------------------------------------------------------------
此処から先、分からなくなる。
検索クエリは「bashrcに追加 履歴 ctrl +r」2 ctrl +r
http://d.hatena.ne.jp/poch-7003/20090927/1254034581
(日文)
bashでCtrl-rでコマンド履歴を後方検索
(reverse-i-search)`LA': export LANG=en_US.utf8
これは便利ですね。「別名設置流程」が理解できなかったので、これだけ使っておきます。
ありがとうございました。
這很方便。 我無法理解“別名設置流程”,所以我只會使用它。
非常感謝。