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?

linuxコマンドでファイルの内容を確認する!(個人的備忘録)

Posted at

はじめに

この記事では、よく使うけど忘れがちなファイルをの中身を表示するコマンドについて自分用にまとめます。

備忘録

cat

ファイルの中身全てを閲覧できる

cat hoge.fuga

cat -n hoge.fuga

head

ファイルの先頭から指定行数を表示する

head -n<数字> hoge.fuga

tail

ファイルの末尾から指定行数を表示する

tail -n<数字> hoge.fuga
0
0
1

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?