回答編集履歴

1

追記

2023/01/05 07:18

投稿

can110
can110

スコア38266

test CHANGED
@@ -1 +1,2 @@
1
- [In Jupyter Notebooks on Google Colab, what's the difference between using % and ! to run a shell command?](https://stackoverflow.com/a/60799846)の回答に記載の通り、IPythonのコマンドかbashのコマンドかの違いで、`cd`などで挙動が異なります。
1
+ [In Jupyter Notebooks on Google Colab, what's the difference between using % and ! to run a shell command?](https://stackoverflow.com/a/60799846)の回答に記載の通り、IPythonのコマンドかbashのコマンドかの違いでありそのコマンドを解釈、実行する**土台が異なります**
2
+ 「どのように」という点に適切にこたえるのは難しいですが、たとえば`cd`などで挙動が異なりますが、挙動が同じならとくに使い分けを意識する必要はないと思います。