forked from JaiMaaSheeravali/Roosh
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request JaiMaaSheeravali#33 from JaiMaaSheeravali/modify-t…
…utorial Tutorial Content Improved
- Loading branch information
Showing
33 changed files
with
181 additions
and
122 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
sudo apt-get update | ||
Fetches and updates list of available linux packages (requires internet) | ||
sudo apt-get install [Package-name] | ||
Download (if required) and install the package in linux | ||
sudo apt-get upgrade | ||
Updates all outdated Installed packages in linux. |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
cd path/to/directory | ||
command to Go to the given directory | ||
cd | ||
cd [path/to/directory] | ||
command to Go to the given directory (either relative or absolute) | ||
cd ~ | ||
command to go to home directory of current user | ||
cd .. | ||
Go up to the parent of the current directory | ||
cd - | ||
Go to the previously chosen directory | ||
Go up to the parent of the current directory |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
cp {{source}} {{target}} | ||
Make a copy of file at source to target location | ||
cp -r {{source}} {{target}} | ||
Recursively copy a directory at source to target address. |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
git add [file] | ||
adds a file to the staging area | ||
git add [directory] | ||
adds a directory to the staging area. | ||
git add . | ||
adds all files in current directory that are not staged |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
git clone [url] | ||
to obtain a repository from an existing URL (using ssh or https) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
git commit -m “[ Type in the commit message]” | ||
records or snapshots the file permanently in the version history | ||
git commit -a | ||
commits any files you’ve added with the git add command and also commits any files you’ve changed since then |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
git config -global user.name "[name]" | ||
sets the author name to be used with commits | ||
git config -global user.email "[email address]" | ||
sets the email address to be used with your commits |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
git init [repository name] | ||
Used to start a new git repository in the current directory |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
git push [remote repository name] master | ||
sends the committed changes of master branch to your remote repository | ||
git push [remote repository name] [branch] | ||
command sends the branch commits to your remote repository | ||
git push –all [remote repository name] | ||
command pushes all branches to your remote repository |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
git reset [file] | ||
command unstages the file, but it preserves the file contents | ||
git reset [commit] | ||
command undoes all the commits after the specified commit and preserves the changes locally |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
git_config | ||
used while working with git | ||
git_init | ||
used to start a new repository | ||
git_clone | ||
clone a remote git repository | ||
git_add | ||
add file(s) to git staging area | ||
git_commit | ||
Commits a file and merges it in the current branch | ||
git_reset | ||
Used to undo changes | ||
git_push | ||
Pushes local commits to the remote repository | ||
git | ||
Miscellaneous git commands used for various purposes |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
grep "{{search_pattern}}" {{path/to/file}} | ||
Search for a pattern within a file | ||
grep --fixed-strings "{{exact_string}}" {{path/to/file}} | ||
Search for an exact string (disables regular expressions) | ||
|
||
Search for an exact string (disables regular expressions) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
git init [repository name] | ||
to start a new repository |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
ls | ||
ls command is used to list directory contents | ||
ls -1 | ||
List files one per line | ||
List details of file in current directory | ||
ls -a | ||
List all files, including hidden files | ||
ls -F | ||
List all files, with trailing / added to directory names | ||
ls -la | ||
Long format list (permissions, ownership, size, and modification date) of all files | ||
ls -f | ||
List all files, with trailing '/' added to directory names | ||
ls -alt | ||
Long format list (permissions, ownership, size, and modification date) of all files (including hidden files) |
Oops, something went wrong.