Last active
February 18, 2017 00:23
-
-
Save amfischer/6f1cb121d6e817ffb763a7d933c3e690 to your computer and use it in GitHub Desktop.
cheat sheets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install Composer | |
sudo apt-get install composer | |
# Install Laravel and it's dependencies | |
composer global require "laravel/installer" | |
sudo apt-get install php7.0-zip php7.0-mbstring php7.0-xml | |
# add laravel executable to path | |
echo 'export PATH="$PATH:$HOME/.config/composer/vendor/bin"' >> ~/.bashrc | |
source ~/.bashrc | |
# install mysql | |
sudo apt-get install mysql-client-core-5.7 php7.0-mysql mysql-server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#install package | |
sudo apt-get install <package name> | |
#search for package | |
apt-cache search <package name> | |
# search computer for file | |
# find <path> <options> | |
# ~/ searches root, / searches whole file system | |
find / -type f -iname '*.crt' | |
find ~/ -type f -name 'index.html' | |
To List all Installed Packages | |
Here "less" is a simple text reader used to scroll through the list of packages in a new buffer that opens in the existing terminal window. The list will not be mixed with other terminal commands and output. Hit 'q' to return to terminal prompt. See "man less" for more info. | |
dpkg -l | less | |
To check whether a package is installed or not: | |
dpkg -l {package_name} | |
dpkg -l vlc | |
To check if the package is installed or not (for example, vlc). If installed, launch the package: | |
dpkg -l | grep vlc | |
Show the location where the package is installed. The "-S" (capital S) stands for "search" | |
sudo dpkg -S {package_name} | |
sudo dpkg -S skype | |
To use Grep to search: | |
dpkg -l | grep {keywords} | |
dpkg -l | grep pdf | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment