看板 Linux 關於我們 聯絡資訊
$ cd /opt/android-studio/bin $ ./studio.sh 像上面兩行指令 如何寫成一行啊? 亂試都弄不出來 還有 第二行的「./」是什麼意思呢? 看Linux基礎教學沒看到這個寫法 thanks -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 210.65.89.53 ※ 文章網址: https://www.ptt.cc/bbs/Linux/M.1511687971.A.D6A.html
OrzOGC: cd和 .拿掉接在一起就好 ./代表現在所在的資料夾 11/26 17:34
感謝 ※ 編輯: dharma (210.65.89.53), 11/26/2017 17:34:43
hijkxyzuw: /opt/android-studio/bin/stdio.sh 11/26 18:29
bitlife: cd拿掉,現用目錄沒變,執行結果不保證一樣,要看實際內容 11/26 19:50
mikemax: cd /opt/android-studio/bin; ./studio.sh 11/26 20:43
pili100: 5F正解 11/27 14:27
Jerr: ";" 可以改 "&&" 避免目錄不存在而剛好PWD有另一個studio.sh 11/27 16:24
Jerr: cd /opt/android-studio/bin && ./studio.sh 11/27 16:24