情報の分析 1. Linux ツールの活用



Similar documents

untitled

bash on Ubuntu on Windows bash on Ubuntu on Windows bash on Ubuntu on Windows bash on Ubuntu on Windows bash on Ubuntu on Windows ˆ Windows10 64bit Wi

CentOSv2_furoku

273? C

A

Windows Cygwin Mac *1 Emacs Ruby ( ) 1 Cygwin Bash Cygwin Windows Cygwin Cygwin Mac 1 Mac 1.2 *2 ls *3 *1 OS Linux *2 *3 Enter ( ) 2

slice00_install.dvi

ファイルシステム

unix.dvi


UNIX

LAN Copyright c Daikoku Manabu This tutorial is licensed under a Creative Commons Attribution 2.1 Japan License

kiso2-01.key

Unix * 3 PC 2 Linux, Mac *4 Windows Cygwin Cygwin gnuplot Cygwin unix emulator online gnuplot *5 matplotlib *6 SuperMongo *7 gnuplot gnuplot OS *8 Uni

情報活用資料

UNIX version Copyright c Daikoku Manabu 1 UNIX 1.1 UNIX UNIX UNIX OS Windows UNIX UNIX UN

Microsoft Word - 1.抗がん剤治療を受けられるかたへ(最新版).doc

I #2 : ( 8-13), () URL : j inoue/prog2007/prog2007.html

20 H8/3069LAN H. Fukura

UNIX

●70974_100_AC009160_KAPヘ<3099>ーシス自動車約款(11.10).indb

!!!!!

160420c_unix.pptx

改訂版 :基本的な文字化の原則(Basic Transcription System for Japanese: BTSJ)

X Window System X X &

PowerPoint Presentation

170420_unix.pptx

Microsoft PowerPoint - InfPro_I6.pptx

練習 4 ディレクトリにあるファイルを直接指定する (cat) cat コマンドを使う (% cat ファイル名 ) と ファイルの内容を表示できた ファイル名のところにパス名を使い ディレクトリ名 / ファイル名 のように指定すると ディレクトリ内にあるファイルを直接指定できる 1 % cat _

Microsoft Word - Cygwin・ns2インストール.doc

GNU Emacs GNU Emacs

の Install Cygwin now リンクから setup.exe をダウンロードして ダブルクリックしてください Choose A Download Source の項目では Install from Internet を選んで次に進みます Se

2

Exercise for undergraduate students

Asterisk PBX 不正利用防止

REALV5_A4…p_Ł\1_4A_OCF

untitled

「都市から地方への人材誘致・移住促進に関する調査」

<91498EE88CA D815B2E786C73>

〔 大 会 役 員 〕

橡本体資料+参考条文.PDF

Lecture on

2 1. Ubuntu 1.1 OS OS OS ( OS ) OS ( OS ) VMware Player VMware Player jp/download/player/ URL VMware Plaeyr VMware

app1.id

kiso2-01.key


<4D F736F F F696E74202D E3F FC96E55F F554E CC8AEE D8EAF2E B8CDD8AB B83685D>


プログラミング演習Ⅱ ガイダンス

TC5.ids

Microsoft PowerPoint - スハ?コン利用入門_ _UNIX利用の基礎知識.pptx

1st-session key


-34-

情報処理概論(第二日目)

2 Windows 10 *1 3 Linux 3.1 Windows Bash on Ubuntu on Windows cygwin MacOS Linux OS Ubuntu OS Linux OS 1 GUI Windows Explorer Mac Finder 1 GUI

9 rbenv rbenv ruby 9.1 rbenv rbenv rbenv ruby ruby-build ruby 9.2 rbenv macos.bash_profile ~/.bash_profile ~/.bash_profile.bak $ touch ~/.bash_profile


tebiki00.dvi

-2 gnuplot( ) j ( ) gnuplot /shell/myscript 1

シェルプログラミング コマンドをパイプでつなげるだけでは済まないような ある程度まとまった処理を複数のコマンドを制御構文を用いたりしてファイルとしたものを ( シェル ) スクリプトと呼ぶ シェルプログラム バッチなどともいう.bash_profile もシェルスクリプトなので このファイルを解読し

情報処理概論(第二日目)

本 日 の 授 業 内 容 最 低 限 覚 えるべきUNIXコマンド pwd, ls, mkdir, cd, cp, rm, mv テキストエディタの 簡 単 な 使 い 方 テキストエディット, Jedit X,Emacs C 言 語 プログラミングの 初 歩 hello, world を 画 面

unix15-script2_09.key


橡Taro9-生徒の活動.PDF

Linux XScreenSaver T020074

1 1 CentOS Java JDK(JavaSE Development Kit)......

A : kerl kerl Erlang/OTP Erlang/OTP 2 2 Elixir/Phoenix URL 2 PDF A.2 Bash macos.bash_profile exp

PowerPoint プレゼンテーション

1) : man [ ] 1: $ man ls ls ( jman) 2: $ man 3 printf C printf 3 man 1: 2: UNIX 3: 4: 5: 6: 7: 8: man man man -k 2) : ls [options] 1: $ ls /etc [ or ]

第 3 回情報基礎演習 UNIX / Linux: ファイルシステム シェルを理解しよう! 谷口貴志 Panda に login し 情報基礎演習クラスの VDI から Ubuntu に接続し Linux に login した後, 左 上の Activity 端末のアイオン をクリック 端末 を立ち

PowerPoint Presentation

syspro-0405.ppt

( ) 1 Windows HTML ( ) ( ) ( ) WWW 10 ( )

ネットワークシステム管理 #01

(2 Linux Mozilla [ ] [ ] [ ] [ ] URL 2 qkc, nkc ~/.cshrc (emacs 2 set path=($path /usr/meiji/pub/linux/bin tcsh b


プログラミング演習Ⅱ ガイダンス

再起動した状態になり パスワードを入力すると 図 2 のように DEXCS2011 のアイコ ンがデスクトップ上に表示される 2 端末を準備する メニューバーにある端末の形を左クリック 図 2 デスクトップ メニューバーに端末の形がない場合 図 3 メニューバー アプリケーション アクセサリー 端末

ワードプロセッシングについて

1-index.PDF

3.Cygwin で日本語を使いたい Cygwin で以下のコマンドを実行すると それ以降 メッセージが日本語になります export LANG=ja_JP.UTF-8 これは 文字コードを日本語の UTF-8 に設定することを意味しています UTF-8 は Cygwin で標準の文字コードで, 多

ネットワークシステム管理 #01

Add-onアプリケーション開発 - 環境構築マニュアル -

Raspberry Pi3 / arm64 - Debian/Ubuntu ミートアップ in 札幌


Docker Haruka Iwao Storage Solution Architect, Red Hat K.K. February 12, 2015

情報処理概論(第二日目)

PowerPoint プレゼンテーション - 物理学情報処理演習

KNOB Knoppix for Bio Itoshi NIKAIDO

Raspberry Pi ZeroによるIoT入門

スパコンに通じる並列プログラミングの基礎

2

スパコンに通じる並列プログラミングの基礎

untitled

2008 Linux May 12, 2008

スライド 1

Transcription:

1. Linux Chris Plaintail June 16, 2016 1 / 39

1 Cygwin Cygwin 2 3 4 Cygwin 5 2 / 39

Uinux Unix OS Micorsoft Windows Cygwin Cygwin 3 / 39

Cygwin 4 / 39

Cygwin...is it? a large collection of GNU and Open Source tools which provide functionality similar to a Linux distribution on Windows. a DLL (cygwin1.dll) which provides substantail POSIX API functionality.... isn t it? a way to run native Linux apps on Windows. You must rebuild your application from source if you want it to run on Windows. a way to magically make native Windows apps aware of UNIX R functionalty like signals, ptys, etc. Again, you need to build your apps form source if you want to take advantage of Cygwin functionality....form www.cygwin.com 5 / 39

Cygwin setup-86.exe (setup-86 64.exe) 6 / 39

[ ]-[ (P)]-[ ] -[Cygwin]-[Cygwin Bash Shell] HOME.bash_profile 7 / 39

8 / 39

[...]$ [...]$ pwd [...]$ [...]$ date date -u --help [...]$ date -d"2011-09-21 9:52:00" +%s [...]$ [...]$ echo echo Hello -n Hello 9 / 39

[...]$ clear [...]$ whoami 10 / 39

[...]$ man j [return] k f [space] b p q 1 1 1 1 11 / 39

(CTRL-p) (CTRL-n) (CTRL-b) (CTRL-f) Del (CTRL-d) TAB TAB 12 / 39

pwd date echo man clear whoami 13 / 39

14 / 39

( ) ( ) cat CTRL-d 15 / 39

date > date >> cat < cat cat < > 16 / 39

cat << EOF filename.txt cat << EOF > filename.txt cat > filename.txt 17 / 39

printenv wc -l printenv less printenv head -5 printenv grep HOME printenv grep -v HOME head -5 /etc/services tail -3 18 / 39

printenv less printenv > filename.txt less < filename.txt A B C... 19 / 39

1 1 printenv 10-15 2 printenv 3 printenv HOME daito 4 printenv HOME daito 5 printenv HOME daito 6 printenv HOME daito 7 20 / 39

cat head tail less wc grep printenv 21 / 39

Cygwin 22 / 39

(/) cygwin C:\cygwin C:\daito\apps\cygwin (~) C:\cygwin\home\ Z:\ /cygdrive C: /cygdrive/c Z: /cygdrive/z 23 / 39

(cygwin) C: Z: cygwin (/) etc home cygdrive c z Users 24 / 39

pwd cd cd.. / 25 / 39

ls ls [ ] [ ] ls -l ls -a ls -d ls / ls /etc 26 / 39

ls -l /etc total 1344 -r--r----- 1 root wheel 237 2 17 19:53 RsLicense drwxr-xr-x 3 root wheel 102 10 31 2004 X11 -rw-r--r-- 1 root wheel 515 10 26 2013 afpovertcp.cfg lrwxr-xr-x 1 root wheel 15 10 26 2013 aliases -> postfix/aliases -rw-r----- 1 root wheel 16384 10 26 2013 aliases.db drwxr-xr-x 11 root wheel 374 3 29 01:05 apache2 drwxr-xr-x 18 root wheel 612 5 16 20:40 asl -rw-r--r-- 1 root wheel 975 10 26 2013 asl.conf -rw-r--r-- 1 root wheel 377737 9 21 2013 authorization.deprecated -rw-r--r-- 1 root wheel 1935 10 26 2013 autofs.conf -r--r--r-- 1 root wheel 745 10 26 2013 bashrc -rw-r--r-- 1 root wheel 189 10 26 2013 csh.cshrc -rw-r--r-- 1 root wheel 121 10 26 2013 csh.login -rw-r--r-- 1 root wheel 39 10 26 2013 csh.logout drwxr-xr-x 3 root wheel 102 9 11 2013 defaults ( owner group ) 27 / 39

-r--r----- 1 root wheel 237 2 17 19:53 RsLicense drwxr-xr-x 3 root wheel 102 10 31 2004 X11 -rw-r--r-- 1 root wheel 515 10 26 2013 afpovertcp.cfg lrwxr-xr-x 1 root wheel 15 10 26 2013 aliases -> postfix/aliases -rw-r----- 1 root wheel 16384 10 26 2013 aliases.db drwxr-xr-x 11 root wheel 374 3 29 01:05 apache2 -rw-r--r-- 1 root wheel 975 10 26 2013 asl.conf -r--r--r-- 1 root wheel 745 10 26 2013 bashrc 1 d : l : - : 2-10 2-4 :, 5-7 :, 8-10 : r : w : x : 28 / 39

cp mv rm mkdir rmdir wc head tail less 29 / 39

? 1 * 0 [...] [...] 1 ls /e?? ls -l /e??/[ah]* ls -l -d /e??/[ah]* 2 1 cp /etc/hosts*./ 2 cp /etc/hosts.allow./hosts.1 3 ls -ld /etc/* grep "^-" ^ 30 / 39

pwd cd ls cp mkdir mv rm wc which 31 / 39

32 / 39

/etc/bashrc ~/.bashrc ~/.bash_profile bash HOME.bash profile cd /cygdrive/z/cs-a echo "cd /cygdrive/z/cs-a" >.bash_profile 33 / 39

PS1 HOME PATH... = export 34 / 39

printenv HOME=/home/... LANG=ja_JP.UTF-8 PATH=/bin:/usr/bin:... SHELL=/usr/bin/bash... echo $PS1 echo $PATH 35 / 39

PS1 PS1="[\u@\h]$ " \u \h \d \t \w \! \# \n export export PS1 export PS1="[\u@\h]$ " 36 / 39

PATH PATH=/cygdrive/z/CS-A:$PATH export export PATH export PATH=/cygdrive/z/CS-A:$PATH 37 / 39

.bash profile.bash profile cd /cygdrive/z/cs-a PATH=/cygdrive/z/CS-A:$PATH export PATH export PS1="[\u@\h]$ "... 38 / 39

export printenv echo 39 / 39