Basic Linux Command For Splunk
Basic Linux Command For Splunk
Basic Linux Command For Splunk
WHY LINUX?
Because Linux is free, it is an open source
It’s free and easy to install. In fact, installing a full-blown web server
(that includes a database server), is just a few clicks or commands away
while with other you need to pay. Linux is generally far less vulnerable
to such attacks.
For example: Compare to windows, it is very difficult to have issues
with ransomware, malware, or viruses.
Open source
Linux is also distributed under an open source license. Open source
follows these key tenants:
Linux features
- Simplified updates for all installed software using the CLI
(Command Line Interface ) while in windows it is GUI ( Graphical
User Interface). “ $ sudo yum update java” command for software
update
- Free Software Licensing
- Access to Source Code (ubuntu or centos are available for your
development and you can customize it )
- Multiple Distributions
- Better Malware Protection ( for example, with windows you need
anti-virus while with Linux, you don’t need any anti-virus, it is
completely anti virus free)
-
Linux Kernel
The Kernel is the central nervous system of Linux. It provides all other
programs that run under Linux and manage them.
With AWS, it exists a short cut, you just need to connect your instance
from AWS and it will bring you directly to your terminal / CLI. This is
what we will be using in this class for our lab.
CLI = Command Line Interface
The ls command here also helps you to list all your directory. In this
case, we have 2 directories.
Create some empty file with “ touch” command and list them
Let’s create 3 files ( file1, file2, file3) and use ls to list them
Note: create the files under the directory knowUfuture
“copy” also is to make another copy of the file with the same
content but different name
Copy file1 to file4
IMPORTANT
From here you can start working if you are executing something
that requires root privileges
Otherwise, you need to switch back to user
Owner ( the user who create the file) = rwx = 421=7 = the
owner has permission to read , to write and to execute
Group= ( the group in which the owner belong) = rwx= 420 any
one in this group has the permission to read and to write only
World ( everybody else) = rwx=400 everybody else has only
permission to read