LoginSignup
1
2

More than 5 years have passed since last update.

Bash in Jupyter

Posted at

WindowsでLinuxのコマンドを使う方法

Bash on Ubuntu on WindowsMingwCygwinGitをインストールすれば、Windowsでも Linux のコマンドの一部を使えるようになります。

Jupyterからも、シェルのコマンドを簡単に使えるようです。例えば、Gitをインストールしていると、下記のように表示されます。

jupyter_notebook
%%bash
ls /
>>>
ReleaseNotes.html
bin
cmd
dev
etc
git-bash.exe
git-cmd.exe
mingw64
proc
tmp
unins000.dat
unins000.exe
usr

使えるコマンドは、"C:\Program Files\Git\usr\bin"などにありました。

Pythonを書きながら、ちょっと grep や sed や xargs などを使いたいときには、便利かもしれません。

以上

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2