Linux

Linux

公開鍵認証 ssh接続

設定前ssh実施(ホスト側)公開鍵情報を渡してない状態では接続できない$$ ssh user2@172.31.9.35Permission denied (publickey,gssapi-keyex,gssapi-with-mic).$公...
Linux

linux rhel シェルスクリプト ひな形

内容# cat /root/hinagata.sh#!/bin/bashlodDate=$(date +%Y%m%d)logFile="/root/log/hinagata_${lodDate}.log"writeLog() { times...
Linux

パーミッションを数字で取得する方法

# ll /root合計 4-rwxrwxrwx 1 root root 0 1月 8 03:21 a-rw-------. 1 root root 1255 12月 3 18:12 anaconda-ks.cfg-rwxr----x 1 ...
Linux

ディレクトリのパーミッションのみを調べる方法

ls -l ディレクトリとかやると、ディレクトリ内のファイル一覧とパーミッションなどが表示されるのでメモ# ls -l /root/20240106合計 0ls -ld# ls -ld /root/20240106drwxr-xr-x 2 ...