psコマンドで、CPU使用率・メモリ使用量でソートする

PSコマンドでは、通常ではプロセスID順に並んでいますが、この並びをCPU使用率・メモリの使用率に変更して表示する事ができます。CPUやメモリ以外の項目でもソートできるので詳し ...
「PrintScreen」を押しても「Snipping Tool」で開かないようにする

昔は「PrintScreen」キーを押すと、スクリーンショット(画面全体のキャプチャ)として保存されていましたが、いつかのバージョンアップで「Prin ...
Windows11 の標準機能でシステムイメージを作成する

Windows11でシステムイメージを作成してバックアップするには、以下のサードパーティを利用すればバックアップできますが、フリー版もありますが、有料のソフトが多いです。フリー版の場合は機能が制限されていたり広告が表示されたりします
ディレクトリごとの容量が大きい順で並び替えて表示する

ディスク容量が少なくなって、どのディレクトリが使用しているか確認したいときに「du」コマンドで使用している容量は下記のように確認できます
$ sudo du -sh/var/www/vhosts/*/219M/var/www/v ...シェルスクリプトでwhile文で使用した変数がループ外で反映されない場合

下記のようなシェルスクリプトでwhileループ内読み込んだファイルの内容を表示して、行数をカウントしています。
while内では、変数が表示されますがwhileループの外だと変数は「0」と表示されます
「acme.sh」でルートの鍵長を指定する【無料SSL証明書】

古いサーバーで、pythonのバージョンが古いので「acme.sh」を利用して無料のSSL証明書を発行しました
証明書のチェックをCMANのSSLチェックでおこなうと、ルートの鍵長が「256」となっていました。OPENSSLで ...
URLをシェルスクリプトで監視する

先日、「.htaccess」を編集して記述ミスがあったらしくしばらく「Internal Server Error 500」でHPが停止していました。プロセス監視はしていますがURLのチェックをしていないので下記のシェルスクリプトで監視 ...
Chromeで新規タブのHPのアイコンを削除

Chromeで新規タブを開くとGoogleの検索窓に今までに訪れたHPのアイコンが表示されます。
以前は「Google Arts & Culture」という拡張機能を使用して、新規タブを開くと世界の名作絵画を表示で ...
WordPress の管理画面にIPアドレス制限 【Apache 2.4系】

WordPress の不正アクセスで多いのは管理画面でログインできる「wp-login.php」にアクセスが多いです。ログで確認すると海外からアクセスが多いので、WAF(Web Application Firewall)のModSec ...
Notepad++ で全角空白が「IDSP」と表示される

普段は、「Notepad++」というテキストエディタを使用しています。先日バージョンアップしてあるテキストファイルを開いたら「IDSP」と表示されている箇所がありました。普段は背景が黒色でしようしているのに白色になっているので、バージ ...
メンテナンスモードで「fstab」の書き込みができなくなった場合の対処方法

LinuxサーバーでHD故障でディスクを外してたりして再起動しました。故障したHDの「fstab」の故障したHDのマウントしている箇所のコメントアウトを忘れていたので、起動時に失敗しました。
画面ではメンテナンスモードに移 ...
ModSecurityでホワイトリスト・ブラックリストを追加

無料のWAFの「ModSecurity」でホワイトリストとブラックリストを設定する方法を説明します。「ModSecurity」のインストール方法は「無料のWAF(Web Application Firewall)のModSecurit ...
FileZillaの接続タイムアウト対策

FileZillaで、SFTPの接続などでしばらく作業をしていない場合で、下記のようなメッセージが表示され接続タイムアウトになる場合があります
エラー: 非アクティブになってから 20 秒後に接続がタイムアウトになりました ...
FileZillaでダウンロード失敗「530 Sorry, the maximum number of clients~」

FileZillaでWEBサーバーのディレクトリにあるファイルを数十個くらいダウンロードするとよく「530 Sorry, the maximum number of clients (3) from your host are alr ...
「Google Bard」が日本語対応している

久しぶりにGoogle Bardにアクセスして簡単な質問したら日本語対応していました。
更新情報を見ると以下いなっています。5/10に日本語で利用できるようなったみたいですね
2023 年 5 月 10 日Ba ...