0
1

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】プロンプトに時刻を表示する

Posted at

プロンプトに時刻を表示する

オプション 詳細
t 時間(24時間表示)
T 時間(12時間表示)
u ユーザ名
h ホスト名
H FQDN
w カレントディレクトリ(絶対パス)
W カレントディレクトリ(相対パス)
実行例
$ PS1="[\t \u@\h \w]\$ "
実行結果
[12:23:34 username@hostname /user/local]$
0
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?