WEBアプリ開発に関する技術を綴るブログ

php,js,apache,mysql,laravel,fuelphpあたりの技術

コマンド

yum(Yellowdog Updater Modified)

yum [オプション] [コマンド] [パッケージ名]

YUMを使用することで、

ディストリビューション(Linuxの配布形態)のパッケージアップデート パッケージの検索 パッケージ削除 パッケージの情報表示

などができるようになる。

homebrew Mac OS X オペレーティングシステム上でソフトウェアの導入を単純化するパッケージ管理システム. yum や apt-get と似たようなもの。 Homebrew はスーパーユーザでコマンドを実行する必要が無く、 一般ユーザー権限で使うことが出来ます。

$ brew list exiftool git libidn2 node wget gettext icu4c libunistring openssl

$ brew search wget ==> Formulae wget ✔ wgetpaste

brew -v Homebrew 1.7.3-29-g3a49146

$ brew update Already up-to-date.

$ brew doctor Please note that these warnings are just used to help the Homebrew maintainers with debugging if you file an issue. If everything you use Homebrew for is working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: You have unlinked kegs in your Cellar Leaving kegs unlinked can lead to build-trouble and cause brews that depend on those kegs to fail to run properly once built. Run brew link on these: git

$ brew --config (設定一覧) HOMEBREW_VERSION: 1.7.3-29-g3a49146 ORIGIN: https://github.com/Homebrew/brew HEAD: 3a4914664e0b2ce83d9ceb029605c5a40e2f6bc7 Last commit: 3 hours ago Core tap ORIGIN: https://github.com/Homebrew/homebrew-core Core tap HEAD: 3152b0138027def7086a4436d06bb51e0e592d79 Core tap last commit: 3 hours ago HOMEBREW_PREFIX: /usr/local HOMEBREW_DEV_CMD_RUN: 1 HOMEBREW_GIT: git CPU: quad-core 64-bit haswell Homebrew Ruby: 2.3.7 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin/ruby Clang: 9.1 build 902 Git: 2.15.2 => /usr/bin/git Curl: 7.54.0 => /usr/bin/curl Java: 10.0.1 macOS: 10.13.6-x86_64 CLT: 9.4.1.0.1.1528165917 Xcode: N/A XQuartz: N/A

$ brew info git git: stable 2.18.0 (bottled), HEAD Distributed revision control system https://git-scm.com /usr/local/Cellar/git/2.18.0 (1,488 files, 35.2MB) Poured from bottle on 2018-07-03 at 11:11:46 From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/git.rb ==> Dependencies Optional: pcre2 ✘, gettext ✔, openssl ✔, curl ✘, perl ✘ ==> Options --with-blk-sha1 Compile with the block-optimized SHA1 implementation --with-curl Use Homebrew's version of cURL library --with-gettext Build with gettext support --with-openssl Build with Homebrew's OpenSSL instead of using CommonCrypto --with-pcre2 Build with pcre2 support --with-perl Build against Homebrew's Perl rather than system default --with-persistent-https Build git-remote-persistent-https from 'contrib' directory --with-subversion Use Homebrew's version of SVN --without-completions Disable bash/zsh completions from 'contrib' directory --HEAD Install HEAD version ==> Caveats Bash completion has been installed to: /usr/local/etc/bash_completion.d

zsh completions and functions have been installed to: /usr/local/share/zsh/site-functions

Emacs Lisp files have been installed to: /usr/local/share/emacs/site-lisp/git

yumとhomebrewの違い</u

yumでパッケージと呼んでいたところをHomebrewはfarmulaという

yum install パッケージ名 ☆☆☆☆ brew install formula yum remove パッケージ名 ☆☆☆☆ brew uninstall formula yum update [パッケージ名] ☆☆☆☆ brew upgrade [formula] yum list installed ☆☆☆☆ brew list

$ sudo !!

直前のコマンドをsudo付きで再実行

dockerコマンド

eval

指定した文字列を評価後に連結して、現在のシェルに実行させます。 主にシェルスクリプトや環境設定用のファイルで使用します evalコマンドにはオプションがありません。

プロセス

プログラムを実行する際には、まず動かすプログラムをメモリ上に乗せます。 作業机の上に広げるのです。 この実行中のプログラムひとつひとつがプロセス

プロセスID

ラソン大会のゼッケンみたいなもの プロセスを識別するための番号