Debian echo 'hello' >> file.txt 問題 - Linux
By Noah
at 2021-10-02T11:11
at 2021-10-02T11:11
Table of Contents
各位前輩好,標題寫得沒有很清楚問題的內容,
我想從 Ubuntu 跳到 Debian 系統,
按照網路上安裝教學,安裝了沒有桌面環境系統。
跟 ubuntu 不同的點是預設沒有 sudo ,
必須使用 su 登入 root 才能操作先前的 sudo 指令。
以下是問題內容:
我想寫一個 shell 腳本,在 root 下執行後可以安裝某個套件,
並在 .bashrc 中寫入一些設定,那我發現在 root 中使用
指令 echo "hello" >> .bashrc 後
檢查 .bashrc 發現並不會寫入...
回到一般用戶就可以,請問這個是因為甚麼問題?
用 echo su write file 等關鍵字去找資料,
都沒有找到答案,所以在這邊發問請教,謝謝。
--
Tags:
Linux
All Comments
By Linda
at 2021-10-05T08:18
at 2021-10-05T08:18
By Elizabeth
at 2021-10-08T05:25
at 2021-10-08T05:25
By Donna
at 2021-10-11T02:32
at 2021-10-11T02:32
By Franklin
at 2021-10-09T16:25
at 2021-10-09T16:25
By Audriana
at 2021-10-12T13:32
at 2021-10-12T13:32
By Oscar
at 2021-10-09T16:25
at 2021-10-09T16:25
By George
at 2021-10-12T13:32
at 2021-10-12T13:32
By Robert
at 2021-10-09T16:25
at 2021-10-09T16:25
By Rae
at 2021-10-12T13:32
at 2021-10-12T13:32
By Bethany
at 2021-10-09T16:25
at 2021-10-09T16:25
By Dorothy
at 2021-10-12T13:32
at 2021-10-12T13:32
By Rosalind
at 2021-10-09T16:25
at 2021-10-09T16:25
By Ethan
at 2021-10-12T13:32
at 2021-10-12T13:32
By Edward Lewis
at 2021-10-09T16:25
at 2021-10-09T16:25
By Vanessa
at 2021-10-12T13:32
at 2021-10-12T13:32
Related Posts
let's encrypt過期啦
By Annie
at 2021-10-01T22:10
at 2021-10-01T22:10
讓連上Hotspot的裝置能在區網看到
By Hazel
at 2021-10-01T12:48
at 2021-10-01T12:48
EAC和Battleye要支援Linux了
By George
at 2021-09-30T04:45
at 2021-09-30T04:45
安裝anydesk public key問題
By Sandy
at 2021-09-29T00:06
at 2021-09-29T00:06
改用doas吧,sudo is bloated。
By Liam
at 2021-09-28T01:28
at 2021-09-28T01:28