ユーザ用ツール

サイト用ツール


tipsmemo:tips:bsdunixlinux

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
tipsmemo:tips:bsdunixlinux [2019/08/05 01:55] hayashitipsmemo:tips:bsdunixlinux [2025/04/10 01:55] (現在) hayashi
行 1: 行 1:
 ====== unix like(BSD/Linux/Unix) ====== ====== unix like(BSD/Linux/Unix) ======
 +===== vi =====
 +==== vi: No terminal database found ====
 +環境変数 TERM が正しく設定されていないと思われる
 +確認すると
 +  # echo $TERM
 +  tmux-256color
  
 +以下の様に設定
 +  export TERM=xterm-256color
 +
 +csh系なら
 +  setenv TERM xterm-256color
 +
 +===== Ubuntu =====
 +==== タイムゾーンの設定 ====
 +=== 確認 ===
 +
 +  $ date
 +  Mon Mar 24 07:45:28 UTC 2025
 +
 +  $ timedatectl | grep 'Time zone'
 +  Time zone: Etc/UTC (UTC, +0000)
 +
 +=== 設定 ===
 +
 +  $ sudo timedatectl set-timezone Asia/Tokyo
 +
 +または以下の様にシンボリックリンクを作成
 +
 +  $ ls -l /etc/localtime
 +  lrwxrwxrwx 1 root root 27 Apr 23  2024 /etc/localtime -> /usr/share/zoneinfo/Etc/UTC
 +  $ ls -l /etc/localtime
 +  lrwxrwxrwx 1 root root 30 Mar 24 16:49 /etc/localtime -> /usr/share/zoneinfo/Asia/Tokyo
 ===== 参考 ===== ===== 参考 =====
  
 [[https://prev.net-newbie.com/linux/user/envfiles.html|各種環境ファイルについて]] [[https://prev.net-newbie.com/linux/user/envfiles.html|各種環境ファイルについて]]
tipsmemo/tips/bsdunixlinux.1564970101.txt.gz · 最終更新: 2019/08/05 01:55 by hayashi