Ruby入門トップページ


目次

  1. 環境設定
  2. コマンドプロンプトの基礎知識
  3. Rubyを動かそう
  4. いくつかのオブジェクト
  5. クラスと変数
  6. メソッド
  7. クラスとモジュール

Ruby入門

コマンドプロンプトの基礎知識

dir
カレントディレクトリ内のディレクトリ(フォルダのこと)とファイルの一覧を表示する
cd
指定したディレクトリに移動する
mkdir
ディレクトリを新規に作成する
[↑]([↓])
入力コマンドの履歴から1つ前(後)の履歴を呼び出す
[F7]
入力コマンドの履歴の一覧を表示する
help
コマンドの一覧を表示する
c:
Cドライブに移動する
[Tab]
コマンドの補完
Microsoft Windows [Version 10.0.19042.868]
(c) 2020 Microsoft Corporation. All rights reserved.

C:¥Users¥lecture>dir ⏎
 ドライブ C のボリューム ラベルがありません。
 ボリューム シリアル番号は E033-4666 です

 C:¥Users¥lecture のディレクトリ

2021/03/10  10:49    <DIR>          .
2021/03/10  10:49    <DIR>          ..
2021/01/06  20:45    <DIR>          .conda
2021/01/06  20:45                43 .condarc
2020/05/26  19:03    <DIR>          .ipython
2020/05/28  09:20    <DIR>          .jupyter
2020/07/29  16:47    <DIR>          .keras
2020/08/04  12:43    <DIR>          .matplotlib
2020/07/30  07:10    <DIR>          .pylint.d
2020/09/29  15:28                26 .python_history
2020/08/04  12:46    <DIR>          .spyder-py3
2020/08/11  14:34    <DIR>          .ssh
2020/04/24  17:06    <DIR>          .vscode
2020/08/30  17:14    <DIR>          3D Objects
2020/05/26  18:58    <DIR>          anaconda3
2020/08/30  17:14    <DIR>          Contacts
2021/03/21  13:48    <DIR>          Desktop
2021/01/08  10:10    <DIR>          Documents
2021/03/21  13:33    <DIR>          Downloads
2020/08/30  17:14    <DIR>          Favorites
2020/08/30  17:14    <DIR>          Links
2020/08/30  17:14    <DIR>          Music
2021/03/13  21:45    <DIR>          OneDrive
2020/09/19  09:11    <DIR>          Pictures
2020/08/30  17:14    <DIR>          Saved Games
2020/08/30  17:14    <DIR>          Searches
2020/08/30  17:14    <DIR>          Videos
               2 個のファイル                  69 バイト
              25 個のディレクトリ  24,158,244,864 バイトの空き領域

C:¥Users¥lecture>cd Documents ⏎

C:¥Users¥lecture¥Documents>mkdir ruby ⏎

C:¥Users¥lecture¥Documents>dir ⏎
 ドライブ C のボリューム ラベルがありません。
 ボリューム シリアル番号は E033-4666 です

 C:¥Users¥lecture¥Documents のディレクトリ

2021/03/21  13:51    <DIR>          .
2021/03/21  13:51    <DIR>          ..
2020/09/29  16:12    <DIR>          django
2020/04/23  16:30             9,278 Excelブック.xlsx
2020/05/23  14:49    <DIR>          Office のカスタム テンプレート
2021/03/21  13:51    <DIR>          ruby
2020/04/23  16:32                18 テキスト文書.txt
               1 個のファイル             748,196 バイト
               5 個のディレクトリ  24,157,868,032 バイトの空き領域

C:¥Users¥lecture¥Documents>cd ruby ⏎

C:¥Users¥lecture¥Documents¥ruby>dir ⏎
 ドライブ C のボリューム ラベルがありません。
 ボリューム シリアル番号は E033-4666 です

 C:¥Users¥lecture¥Documents¥ruby のディレクトリ

2021/03/21  13:51    <DIR>          .
2021/03/21  13:51    <DIR>          ..
               0 個のファイル                   0 バイト
               2 個のディレクトリ  24,157,868,032 バイトの空き領域

C:¥Users¥lecture¥Documents¥ruby>cd .. ⏎

C:¥Users¥lecture¥Documents>

目次に戻る