1
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?

More than 3 years have passed since last update.

Amazon Linux 2 と Ubuntu コマンドメモ

Posted at

走り書きしているので、読みづらさについてはご了承ください。
時間があるときに整理します。

どうも、くっそざこエンジニアけいしーです。
さて書いていきますね。

Ubuntu バージョン確認

cat /etc/issue

詳細情報の確認

cat /etc/lsb-release

Amazon Linux 2 バージョン確認

cat /etc/system-release

詳細情報の確認

cat /etc/os-release

※管理者権限で実行必須

cat /etc/image-id

ホスト名の変更

passwd ec2-user
passwd ubuntu

ネットワーク設定の確認【Amazon Linux 2】

cat /etc/sysconfig/network-scripts/ifcfg-eth0

参考:

ネットワーク設定の確認【共通】

ifconfig

ネットワーク設定の確認【Ubuntu】

前提必須

apt install net-tools
1
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
1
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?