Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Open GitBash => Run as Administrator
- // 1. Check your Environment
- $ cd ~/code/homestead
- $ vagrant status
- // 1.1 Boot Vagrant
- $ vagrant up
- // 1.2 Stop Vagrant
- $ vagrant halt —force
- // 1.3 SSH into Vagrant
- $ vagrant ssh
- List of common Bash Command
- ===========================
- Ctrl + C => to cancel a command or exit from a running command
- executable [arguments...] [--options...] [-O]
- ls =>
- ls -a => list all files (including hidden directory)
- ls -l => list dental detail: file permission, last modifie
- ls -al
- . => Path to current directory
- .. => Path to parent directory
- pwd => show the path of current directory
- cd [path/to/directory] => change directory
- cd .. => move up a directory
- mkdir [folder name] => make directory
- touch [file name] => create a file
- ls [:path/to/folder] => list the inside of directory
- ls [:path/to/folder] -a => list all files (including hidden files and directory)
- ls [:path/to/folder] -l => list the inside of directory with detailed information
- mv [path/to/old] [path/to/new] => move / rename
- cp [path/to/old] [path/to/new] => copy
- rm [path/to/file] => remove
- rm -r [path/to/directory] => remove a directory
- clear => clear the console
- man [executable name] => open the manual
- ln -s [path/to/source] [path/to/link] => create a symbolic link (shortcut)
- Laravel Command
- ===============
- Composer is a Package Manager for PHP.
- composer install => Use for beginning project / update package changes from other developer
- composer update => Update the current packages & install new one
- composer dump-autoload => Update the autoloading of classmate
- laravel new [project name] => Create a Laravel Project
- php artisan list => List available command in Laravel
- php artisan [command name] --help => Open the manual of the PHP artisan command
- php artisan make:migration [migration name] => Create a new table migration
- Git Command
- ===========
- git init => Create a new Git repository
- git status => Check the status of current state
- git add -a [directory] => Move a file to staging area for committal
- git commit -m [message] => Commit the changes
- git reset [directory] => Move a file back from staging area
- git checkout -- [directory] => Cancel the changes
- git remote add [name] [url] => Add a Git remote repository (GitLab, GitHub)
- git push [name] [branch] => Push latest commits to remote repository
- git pull [name] [branch] => Pull latest commits to remote repository
- git commit --amend => Change the commit message of last commit
- Unix Permission
- ============
- no permission => 0
- read => 1
- write => 2
- execute => 3
- read + write => 4
- read + execute => 5
- write + execute => 6
- read + write + execute => 7
- Current User | Group | Everybody
- r-x |rwx | r—
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement