サーバーの型番・メーカー・シリアル番号を調べる

データーセンターに設定しているサーバーでラック図などの資料が古かったり、不足していて、設置しているサーバーのメーカー、型番、シリアル番号がわからなかったりする場合に ...
スタートボタンの右クリックメニューから「コマンドプロンプト」を起動【Windows10】

Windows10では、Creators Update(ビルド 1703)のバージョンアップ以降、スタートボタンの右クリ ...
コマンドプロンプトを管理者権限で起動する方法

コマンドプロンプトを管理者権限で起動したい場合があります。管理者権限で実行する方法は、何通りかありますが今回は2つの方法を紹介します。
一つはアプリケーションの一覧から起動する方法と ...
特定のユーザーでsudoを利用できるようにする

特定のユーザーで「sudo」コマンドを利用できるようにします。
sudoを許可していないユーザーで「sudo su -」のコマンドを利用すると以下のように「xxx is ...
freeコマンド、空きメモリ容量の見方

CentOSでは、freeコマンドでメモリ状況が確認できます。
以前のCentOS 6だと、下記のように「-/+ buffers/cache」があって、その行のfreeの欄を見れば、空き容量がわかりました
$ fre ...WordPress のサイトをバックアップ 【Linux】

WordPressを運用しているサイトのバージョンアップ依頼があり、バージョンアップにするにあたって念の為にWordPressをバックアップしました。バックアップにはプラグインを使用 ...
除外リストにある文字を含む行を削除する方法「シェルスクリプト」

アカウント・ディレクトリ等の一覧のをファイルが有り、そのファイル内で特定の文字を含む行を削除したい場合は、「sed」コマンドを利用すればできます。
その削除したい文字列を除外リストのようなファイルにある場合は、while re ...
ネットワークドライブにあるOfficeファイルを開く場合に遅い場合の対処方法

Sambaにある、EXCELファイルを開くに数十分かかる場合があると話があったので対処方法を調べました。
Sambaが稼働しているサーバーですが、ファイルの転送速度はSCP等に比べると遅いですので、Sambaの設定ファイルを色 ...
Windows 10 の電卓の履歴表示を非表示にする

Windows 10でインストールされている電卓ですが、以前のWindowsの電卓と比較すると、履歴, メモリと表示されているので電卓が大きくなり画面の占める面積が増えています。画面が大きなデスクトップPCならいいですが、ノートパソコ ...
php7.3 の php-imapをインストールする 【CentOS 7】

「postfixadmin + postfix + dovecot 「CentOS 7」インストール」の記事にコメントで、「php-imapはどのようにしてインストールしたのでしょうか?」と質問がありました
postfix ...
echoコマンドで改行コードを入れる方法[Linux]

echoコマンドで改行コード(\n)をいれて、改行したい場合はですが、何もオプションをつけないと改行されません
$ echo "Test\n1234"Test\n1234ただし、echoコマンドを実行すると改行されるので、 ...
sedコマンドでHTMLタグの中身を取得する

HTMLソースで以下のようなタグの場合、<h2>~</h2>に囲まれた「TEST」のみを取得したい場合ですが、sedコマンドを利用するとタグで囲まれた中身を取得できます
<h2>test< ...行頭にゼロに入った数値の文字列で0を解除する【シェルスクリプト】

0で埋められた「001」、「0010」等の文字列になっている数字で、先頭からある「0」を外したい場合があります。
sedコマンド「s/0*\(*$\)/ ...
Gmail で未読メールを検索する

Gmailは仕事で利用したりプライベートで利用したりして、1日で多くのメールが受信します。受信したメールは内容を確認して不要な場合はアーカイブか削除として管理していますが、あまりにもメールが多い場合面倒で仕方ありません。
...
フリーソフトTFTP サーバ「TFTPD64」 【Windows 10】

Windows 10で動作するTFTPサーバーのフリーソフトです。
CiscoルーターにGUIで管理するツールをインストールしたかったのでWindowsで圧縮ファイルをダウンロードして、Ciscoルーターの方にファイルを転 ...