シェルスクリプトでシンボリックリンクか確認する方法

以前に「シャルスクリプトでファイル・ディレクトリ有無の確認方法「if文」 」と記事を書きましたが、確認する先がシンボリックリンクだとちゃんと動かなかったのでif文でシンボリックリンクの場合の扱いをまとめました
シンボリックリンク ...MySQLでCSV出力をするとエラーになる場合

PHPで動いているWEBシステムがありそのシステムの移行作業を実施する案件がありました。
移行先のサーバで動作確認をおこなっていると、 ...
MacOSでデスクトップ表示するショートカットキー

Windowsでは、デスクトップを表示したい場合は「Windowsキー」+「D」でデスクトップが表示されます。このデスクトップ表示するショートカットキーはmacOSでもありますので紹介します。
grep でAND検索とOR検索をする方法

grepで複数の文字列を検索する場合ですが、「-e 検索する文字列」とすればOR検索ができます
書式:grep -e 【検索文字列】 -e 【検索文字列】 【ファイル名】
wgetでBasic認証があるページにアクセスする方法

前回に続いて「wget」のTIPSです。Basic認証等のにユーザー認証があるページにwgetでアクセスする場合は下記のオプションが必要となります
書式:wget –http-user=【ユーザー名】 R ...
wgetでファイル名を指定してダウンロード

wgetでファイルやHTMLファイルを取得する場合ファイル名を指定したり保存先を指定してダウンロードしたい場合があると思います。
その場合はオプションで「-O」を使用すれば ...
MacOSでマイクロSD等のファイルシステムの確認

USBメモリ・SDカードのファイルシステムを確認する時にWindowsだとUSBメモリ・SDカードのファイルシステムのストレージを「右クリック」→「プロパティ」でフォーマッ ...
vimでスラッシュ(/)を含む場合の置換

昔作ったスクリプトで「/home/admin/www1/backup/」にバックアップファイルをコピーするスクリプトがあってディレクトリ構成が変わって「/home/admin/bac ...
MacOSでホスト名を変更する

macOSでホスト名(コンピュータ名)を変更しない場合は「ユーザ名 の マックブックの機種名」みたいな感じで表示されるます。私の場合は「○○○ の MacBook Pro」と表示されてい ...
Boot Camp上のWindows10に「Caps」キーを「Ctrl」キーに割り当てる

macOSでは「Caps Lock」キーを「Command」キーに割り当てて使用しているので、コピペは「Caps+C」、「Cap ...
BootCampのWindows10の解像度変更

BootCampにWindows10をインストールすると標準の画面の解像度では、画像のように「2560x1600」の解像度で文字が小さかったり、アイコンが小さく使いにくいので ...
MySQLをアップグレード後繋がらなくなった場合の対処

「yum update mysql」を叩いて、MySQLをアップグレードしたらMySQLに繋がらくなりました。
エラーログには以下のエラーが出力されてます
EaseUS Software 【GWのプレゼントキャンペーン】

WindowsのパーティションソフトのEaseUS Partition Master Professional 11.10が、 ...
Finderで表示されるフォルダーを変更する (macOS)

macOSをクリーンインストールしてから、新規でフォルダーを起動すると最初に表示されるのが「マイファイル」となっていて使いにくかったので変更する方法を調べました
ファイン ...Firefoxで、検索結果を新規タブで表示する方法

Firefoxで検索結果を、今表示しているタブではなく新規タブに表示する方法です。
「about:config」を叩いて、Firefoxの設定を変更します。コアな箇所を変更するので間違う ...