Professional Documents
Culture Documents
GITEXAM
GITEXAM
Git is a free and open source distributed version control system designed to handle
everything
from small to very large projects with speed and efficiency.
*Git allows a team to work together, where they use the same files.
And it helps the team easier to finish the project
enables the use of IDE plugins to access Git repositories like pycharm , visual
studio.
INITIALIZE REPOS:
mnelson:Desktop mnelson$ cd ~/Desktop
mnelson:Desktop mnelson$ mkdir myproject
mnelson:Desktop mnelson$ cd myproject/
mnelson:myproject mnelson$ git init
COMMIT:
git commit command.
REPOSITORY ON GIT:
Create repository - Existing or empty
push an existing repository from the command line' section:
"git push origin" my-new-branch
A PULL REQUEST:(or PR) is a way to alert a repo's owners that you want to make some
changes to their code.
Merge pull request:This will merge your changes into the primary branch.
RENAMING A FILE:
mv Book3.rtf Appendix.rtf
Then rm>> remove book3 , add>> add appen
UNDO COMMIT:
git log --oneline
Once you know the hash for the commit you want to undo,
git revert 2f5451f --no-edit (hash number)
Creating a release
Editing a release
Deleting a release
-----------------------------------------------------------------------------------
LINUX COMMAN LINES:
LS = Allows you to view a list of the files and folders in a given directory.
RMDIR = command is used remove empty directories from the filesystem in Linux.
GREP = The grep filter searches a file for a particular pattern of characters,
and displays all lines that contain that pattern
CP = cp stands for copy. This command is used to copy files or group of files or
directory.
MV = The mv command moves files and directories from one directory to another, or
renames a file or directory
-----------------------------------------------------------------------------------
---------
MOUNT COMMAND:
The mount command mounts a storage device or filesystem,
making it accessible and attaching it to an existing directory structure.
SHELL SCRIPTING:
shell scripting is set of commands that are used to communicate with the system.
A shell script is usually created for commandsequences
it will save time for repeative tasks.
PEMISSION GROUPS:
Permission Description
Owner Permissions used by the assigned owner of the file or directory
Group Permissions used by members of the group that owns the file or directory
Other Permissions used by all users other than the file owner, and members of the
group that
owns the file or the directory
Run Levels:A run level is a state of init and the whole system that defines what
system services are operating.
-----------------------------------------------------------------------------------
------------------------------
MANAGING USERS IN LINUX:
adduser : add a user to the system.
userdel : delete a user account and related files.
addgroup : add a group to the system.
delgroup : remove a group from the system.
usermod : modify a user account.
chage : change user password expiry information.
JOIN CLAUSE:
A JOIN clause is used to combine rows from two or more tables into one table.
-----------------------------------------------------------------------------------
---------
APACHE WEB SERVER:
Apache HTTP Server is a free and open-source web server that delivers web content
through the internet.
The way Apache HTTP server works is that it will accept requests from the web
browser,
such as Google Chrome and Microsoft Edge, and turn programming scripts into web
pages
which contents are visible by the visitors
SSI (SERVER SIDE INCLUDES):Server-side includes (SSI) are a mechanism for employing
the web server to perform tasks
like displaying files as part of other files or displaying information like the URL
of web pages or dates and times
dynamically.
-----------------------------------------------------------------------------------
--------------------
PHP?:
PHP is an acronym for "PHP: Hypertext Preprocessor"
PHP is a widely-used, open source scripting language
PHP scripts are executed on the server
-------------------------------------------------------------------------------
PHP IDENTIFIERS:Identifier is a general term applied to variables, functions, and
various other userdefined objects.
*Identifiers are case sensitive.
*Identifiers can be any length.
-----------------------------------
PHP DATA TYPES:
data types:
String
Integer
Float (floating point numbers - also called double)
Boolean
Array
Object
NULL
Resource
-------------------------------
PHP operators:
Arithmetic operators
Assignment operators
Comparison operators
Increment/Decrement operators
Logical operators
String operators
Array operators
Conditional assignment operators
---------------------------------------
PHP INSERT DATA TO SQL - "INSERT INTO"
TO FETCH DATA FROM SQL -mysql_fetch_array()
=-------------------------------------------------------
PERL - Perl is a general-purpose programming language originally developed for text
manipulation
and now used for a wide range of tasks including system administration,web
development,network programming,GUI development