簡體   English   中英

ubuntu終端中的命令錯誤

[英]wrong commands in ubuntu terminal

我使用了一個教程,允許我使用MTP在我的ubuntu機器上訪問我的Galaxy Nexus,由於某些原因它不能用android 4.0手動工作。

這是我使用的教程: http//www.omgubuntu.co.uk/2011/12/how-to-connect-your-android-ice-cream-sandwich-phone-to-ubuntu-for-file-access /

我得到了你使用'echo'的部分,我鍵入了錯誤,這是我做錯的部分:

echo “alias android-connect=\”mtpfs -o allow_other /media/GalaxyNexus\”" >> ~/.bashrc

echo “alias android-disconnect=\”fusermount -u /media/GalaxyNexus\”" >> ~/.bashrc

source ~/.bashrc

我輸入這個單詞alia而不是別名,現在我無法正確運行腳本,這意味着我無法將任何內容與我的nexus進行比較。 當我打開一個終端窗口時,我得到一個警告:

No command 'alia' found, did you mean:
 Command 'ali' from package 'nmh' (universe)
 Command 'ali' from package 'mailutils-mh' (universe)
 Command 'alsa' from package 'alsa-base' (main)
alia: command not found

有沒有辦法我可以重新啟動的東西,刪除命令,我不是最好的,當涉及到命令行,我嘗試但有時很難找到你在互聯網上尋找的幫助,而不是去這樣的網站和問。

謝謝。

您可以手動編輯.bashrc文件以清除這種情況。

你可以嘗試打開一個shell:

vi .bashrc

或者,如果您更喜歡其他編輯:

nano .bashrc

或者去看窗口管理員:

gedit .bashrc

使用真實的報價: " is not “

運行以下命令:

echo "alias android-connect=\"mtpfs -o allow_other /media/GalaxyNexus\"" >> ~/.bashrc
echo "alias android-disconnect=\"fusermount -u /media/GalaxyNexus\"" >> ~/.bashrc
source ~/.bashrc

或者使用您選擇的編輯器將以下行添加到〜/ .bashrc:

alias android-connect="mtpfs -o allow_other /media/GalaxyNexus"
alias android-disconnect="fusermount -u /media/GalaxyNexus"

然后運行:

source ~/.bashrc

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM