linux
文書の過去の版を表示しています。
Linux関連めも
man
コマンドがよくわからない時はman(manual)
man ls
最近作られたコマンドはmanがなく -h などのオプションでヘルプを表示するものも多いが、基本的なコマンドならばmanがある。
ファイル
4番目のビットについて、rwsrwsrwtみたいなやつ
- 4 - SUID - 実行ファイルならば、所有者の権限で実行する
- 2 - SGID - 実行ファイルならば、所有グループの権限で実行する。ディレクトリならば、そこに作られたファイルのグループ所有権がディレクトリと同じになる
- 1 - sticky - ディレクトリならば、そこに作られたファイルを削除できるのはrootか作成者のみ。/tmp ディレクトリ等で使う
sudo
sudoerファイルの編集
# visudo
We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things: #1) Respect the privacy of others. #2) Think before you type. #3) With great power comes great responsibility.
Windowsファイル共有をマウント
# mount -t cifs -o username=usr,password=pwd,iocharset=utf8,codepage=utf8 //192.168.1.5/shared ~/samba
ドメイン使ってる場合は知らん
システムconfigについて
システムクロック
今の設定を見る
$ cat /sys/devices/system/clocksource/clocksource0/current_clocksource kvm-clock
使用可能なやつを見る
$ cat /sys/devices/system/clocksource/clocksource0/available_clocksource kvm-clock tsc acpi_pm
linux.1623775596.txt.gz · 最終更新: 2021/06/15 16:46 by nullpon