Linuxで作成したCSVファイルをWindows 11で文字化けさせない方法

RHEL系のLinuxで作成したCSVファイルをWindows 11で開くと、文字化けが発生することがあります。これは、LinuxとWindows ...
特定のディレクトリにあるファイル一覧のHTMLファイルを作成

特定のディレクトリに、各種レポートのcsvファイルやhtmlファイルが有るディレクトリがあります。通常はFTPやSCPでファイルをダウンロードして取得していました。
月次処理でその都度、FTPソフトでダウンロードしていましが、 ...
sedコマンドで小数点以下を切り捨て

curl で集計結果した結果が表示されるHTMLページより数字を取ってきていますが、ブラウザだと小数点を切り捨てていた数字で反映されていますが、curl だと小数点以下を切り捨てられないで取得しています
sedコマンドで小数点以 ...grepとsedを使った特定行の値の置換方法

Linuxで特定のID等をgrepで検索し、その結果の値を置換したい場合、は、grep と sed コマンドを使用することで簡単に実現できます。
例として、下記のようなファ ...
sed で IP アドレスを置換する際のエスケープ処理について

Apache などの設定ファイルで特定の IP アドレスを制限する場合、グローバル IP アドレスが変更されると設定ファイルを手動で書き換える必要があります。この作業を効率化するために sed を使用した ...
ownCloudでメンテナンスモードのOff / On の切り替え方

ownCloudでメンテナンスモードをオン/オフにする方法は、該当サーバーにログインして、CUI環境よりコマンドラインを使用して実行します。
ownCloudがインストールされているディレクトリに移動して、occコマンドのメン ...
whoisコマンドで「.jp」, 「.work」などのドメイン情報を取得する

シェルスクリプトで、whoisコマンドを利用してドメイン情報を取得しドメインの有効期限切れの確認しています。ほとんどのドメインが「.com」なので、whois <ドメイン名>でドメイン情報を取得できましたが、「.jp」, ...
Zabbix の最新バージョンにバージョンアップについて

ZabbixのWEB画面にアクセスして、システム情報を確認すると下記のように「新しいバージョンがリリースされています」と表示されます。
その都度、rpmコマンドでインストールパッケージを表示して、アップデートに必要なパッケ ...
svnsync エラー「svnsync: Revision being currently copied~」

svbversionのバックアップで定期的にsvnsync で同期をとってバックアップしています。最近、実行すると以下のエラーになりました。
$ svnsync ...cronで曜日を指定してスケジュールを設定する方法【Linux】

Cronの基本フォーマット(書式)は、以下の形式で記述されます
Cronの編集方法は、と入力すると、実行ユーザーのcronが編集できます
$ crontab -e設定したcronの確認...
PHP OPcacheのキャッシュサイズを確認する方法

PHP OPcacheのキャッシュサイズを確認する方法はいくつかありますが、2つほどその方法をご紹介します。
PHPスクリプトで確認するOPcacheの状態を確認するには、opca ...
Postfixでリレー送信を設定する方法

メール送信用のメールサーバーがあり、新規に追加したサーバーはそのメール送信サーバー経由でメール送信するように構築したい。その際のPostfixの設定をまとめました。
送信サーバ ...Zabbixで最新バージョンがリリースされているか確認方法

サーバーの運用管理でZabbixを利用しています。
脆弱性対応や機能追加等で定期的にZabbixがアップデートされていますが、その都度、dnf updateコマンド ...
Squidでhostsファイル(/etc/hosts)の変更を反映させる方法

開発環境でSquidを使用しています。
新規の開発環境のドメインを「/etc/hosts」ファイルに追加しましたがsquid経由でアクセスすると、開発環境では ...
dnfコマンドでインストールしたパッケージを確認する

自分の環境ではパッケージソフトの更新は、dnfコマンドの自動更新で実施しています。更新されたパッケージ一覧はcockpit経由でメールで通知がきて確認できます。 ...