2012-01-09 107 views
1

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

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

我在您使用 '迴響' 的一部分,我輸入的東西錯了,這是我做錯了一部分:

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

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

source ~/.bashrc 

I型這個詞,而不是別名,現在我不能正確運行腳本,這意味着我不能compy任何東西到我的聯繫。當我打開一個終端窗口,我得到的頂部有句警告:

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 

有沒有一種方法可以讓我重新開始的東西,刪除命令,我不是最偉大的,當涉及到命令行,我嘗試但有時它很難找到你在互聯網上尋找的東西,而不需要像這樣的網站和詢問。

謝謝。

回答

2

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

你可以試試這個打開外殼:

VI的.bashrc

或者,如果你喜歡備用編輯:

納米的.bashrc

或正在進行的窗口管理器:

gedit .bashrc

1

使用real q uotes:" is not 「

+0

對不起,我把那些代碼從網站上粘貼的地方引用了一下。當他們進入終端時,我確實改變了他們。 – ragebunny 2012-01-10 09:57:45

1

無論是運行以下命令:

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