分页: 2 / 2

Re: 從mint編輯ubuntu的/ etc / fstab,因為多引導的ubuntu幾乎不可操作

发表于 : 2018-06-10 9:10
寺島聰子
$ 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的備忘錄。
感謝您的考慮。

Re: 從mint編輯ubuntu的/ etc / fstab,因為多引導的ubuntu幾乎不可操作

发表于 : 2018-06-10 9:25
onlylove
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

Re: 從mint編輯ubuntu的/ etc / fstab,因為多引導的ubuntu幾乎不可操作

发表于 : 2018-06-10 11:38
poloshiao
sudo swapon -s & /etc/fstab
Does you mean to execute command1 and command2 where
command1 : sudo swapon -s
command2 : /etc/fstab
?

Re: 從mint編輯ubuntu的/ etc / fstab,因為多引導的ubuntu幾乎不可操作

发表于 : 2018-06-10 18:34
寺島聰子
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

$

Re: 從mint編輯ubuntu的/ etc / fstab,因為多引導的ubuntu幾乎不可操作

发表于 : 2018-06-10 18:38
寺島聰子
onlylove様。自分にとって難解の為、これからネット検索します。
ありがとうございます、謝謝

Re: 從mint編輯ubuntu的/ etc / fstab,因為多引導的ubuntu幾乎不可操作

发表于 : 2018-06-11 11:38
poloshiao
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
?
viewtopic.php?p=3206271#p3206271
4-2. sudo swapon -s & /etc/fstab
is the same result : /dev/sda6.
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.

Re: 從mint編輯ubuntu的/ etc / fstab,因為多引導的ubuntu幾乎不可操作

发表于 : 2018-06-11 14:02
寺島聰子
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.
かっこいい!!Cool!こんなふうにするんですね。 :Haha

Re: 從mint編輯ubuntu的/ etc / fstab,因為多引導的ubuntu幾乎不可操作

发表于 : 2018-06-11 19:38
寺島聰子
1 add to alias
https://qiita.com/yutat93/items/b5bb9c0366f21bcbea62​
(日文、以下機械翻訳也)
別名設置流程
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
---------------------------------------------------------------------------------------------------------------
此処から先、分からなくなる。
2 ctrl +r
検索クエリは「bashrcに追加 履歴 ctrl +r」
http://d.hatena.ne.jp/poch-7003/20090927/1254034581
(日文)
bashでCtrl-rでコマンド履歴を後方検索

(reverse-i-search)`LA': export LANG=en_US.utf8

これは便利ですね。「別名設置流程」が理解できなかったので、これだけ使っておきます。
ありがとうございました。
這很方便。 我無法理解“別名設置流程”,所以我只會使用它。
非常感謝。