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?

More than 1 year has passed since last update.

Linuxについて2(自分用メモ

Posted at

Linuxには、rootという管理者アカウントがあり。あらゆる管理者権限をもつ。スーパーユーザーとも呼ばれる。
rootユーザー以外は一般ユーザーという。
Linuxではrootでログインして作業することは推奨されていない。少しの操作ミスでシステム全体に致命的な危機を与える可能性がある。

ログイン後
「$」一般ユーザー、「#」rootユーザー と表示

ログアウト
exit、またはCtrl+D

コマンドに指示する値のことを引数という。
コマンドにはオプションを指定することもできる。オプションはコマンドの動作を調整する役割をもつ。

・コマンド
man コマンド
オンラインマニュアルの最初の行だけ抜き出して表示する
例)man passwd(ユーザーのパスワードを設定・変更する)

whatis コマンド名
オンラインマニュアルの最初の行だけ参照する
例)whatis passwd

--helpオプションでmanコマンドより簡素な説明を表示できる
例)passwd --help

ls [オプション] [ファイル名 または ディレクトリ名]
ファイルの一覧を表示
-lオプションをつけて実行するとファイルの属性情報も併せて表示できる

・システム終了するコマンド
shutdown

・システム終了するコマンドの主なオプション
-r システム終了後に再起動
-h システム終了し停止
-c 実行中のシャットダウンをキャンセル

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?