0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

# AWS学習ログ Day8(2026-02-20)

0
Posted at

今日やったこと

教材

Cloudtech(Linux基礎)

時間

25分 × 1セット


学んだこと・やったこと

ディレクトリについて

ディレクトリは、Windowsでいう「フォルダ」に相当する概念。

Linuxのパスは ルートディレクトリ(/ から始まる。

  • 例:/etc/passwd

パスの表記方法

絶対パス(Absolute Path)

ルートディレクトリ(/)からの 完全なパス
どのディレクトリにいても同じ場所を指せる。

相対パス(Relative Path)

現在の作業ディレクトリ(カレントディレクトリ)を基準にして位置を表す方法。


基本コマンド

cd

ディレクトリを移動する。

  • cd(引数なし):実行ユーザーの ホームディレクトリ に移動
  • cd ..:1つ上のディレクトリへ移動

mkdir

ディレクトリを作成する。

rmdir

空のディレクトリを削除する。
※ ディレクトリが 空でない場合は削除できずエラー になる。

pwd

現在のカレントディレクトリを 絶対パス で表示する。


vi コマンド(エディタ)

vi を起動して編集する。

  • i:インサートモード(入力できる)
  • Esc:ノーマルモード(コマンド操作)
  • :wq:保存して終了
  • :q!:保存せずに終了

source コマンド

指定したファイルを 現在のシェルで読み込んで実行する。
(例:設定ファイルを読み込んで環境変数などを反映したいときに使う)


感想

基本コマンドは昔触ったことがあったので、思い出しながら楽しく勉強できた。

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?