0% found this document useful (0 votes)
11 views2 pages

Basic Info About Liux

The document provides an overview of Linux, an open-source operating system derived from Unix, and discusses various Linux distributions and user interfaces (CLI and GUI). It includes essential commands for file management, user permissions, and process management, along with explanations of their functions. Additionally, it highlights the ability of Linux to support multiple users concurrently on a single system.

Uploaded by

xowib53228
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views2 pages

Basic Info About Liux

The document provides an overview of Linux, an open-source operating system derived from Unix, and discusses various Linux distributions and user interfaces (CLI and GUI). It includes essential commands for file management, user permissions, and process management, along with explanations of their functions. Additionally, it highlights the ability of Linux to support multiple users concurrently on a single system.

Uploaded by

xowib53228
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

>> "linux" is a open source os which come from "unix" -- a fundamental OS and

(proprietary system) which means paid:

>> linux distribution (linux distro) fedro linux(red hat), suse, and ubuntu
community- driven distributions

>> two types of interfaces(CLI & GUI):


–– CLI : command line interface
–– GUI : graphical user interface

so these two interfaces are have their own uses sometime CLI is
efficient sometime GUI is efficient it's depend on uses.
and CLI are use-full for programmer and GUI are use-full when we do
monitoring.

>> "so" in linux "cd /" is for root node (/)


>> "pwd" for present working directory and actual meaning is print working
directory.
>> "ls" for list out all the childern node:

>> absolute path : cd /bin absolute have "/" and relative path cd bin
and if went to see the absolute path then we can do "pwd". –– /home/user

>> "mkdir" to make new folder – "mkdir this"


>> "touch" to make new file and empty file –– "touch 1.txt"
>> "mv" to move file from one folder to another folder: —— "mv 1.txt 2.txt this/"
>> "cp" to copy file from one folder to another folder: —— "cp 3.txt this/"
>> we can also move and copy file like this way with absolute path: —— "cp
/data/py.py /home/user"

>> Users in linux


>> Regular users: home directory
>> Root user or super user: ——> full access [admin]
>> service user:

# some more commands


>> "ls -R" to list out the sub-directory files ——> "ls -R" (here "-R" means
recursively printed all the file inside sub-directory)
/data$ ls -R
.:
1.txt 2.txt 3.txt test.py this

./this:
1.txt 2.txt test.py

# to create hidden file in linux we just do


>> " .krishna" just . with extension (are consider as hidden file);
>> we see them by doing "ls -a"
>> "ls -lart" give information regarding files and folder when created and at what
time.
>> ls -r —— reverse in order
>> ls -R —— to list out sub-directory files
>> ls -t —— sort according to time
>> ls -l —— list out files and folder with additional information like permissions,
ownership, size, timestamp, etc.

# We can check the "history" of command that we run and write on terminal
>> "history" —— Avoid enter some kind of "password" through command line interface
# To print on screen something we "echo" or "printf"
>> echo krishna
>> printf "krishna"

##### Linux provide parallel, concurrency envornment to work multiple user at a


same time in single linux os (single computer) .

>> chmod command are used to change the permission of file


/data$ ls
/data$ mkdir python
/data$ touch 1.txt 2.txt 3.txt 4.txt py.py
/data$ ls
1.txt 2.txt 3.txt 4.txt py.py python
/data$ ls -l
total 0
-rw-r--r-- 1 user user 0 Nov 23 15:29 1.txt
-rw-r--r-- 1 user user 0 Nov 23 15:29 2.txt
-rw-r--r-- 1 user user 0 Nov 23 15:29 3.txt
-rw-r--r-- 1 user user 0 Nov 23 15:29 4.txt
-rw-r--r-- 1 user user 0 Nov 23 15:29 py.py
drwxr-xr-x 2 user user 40 Nov 23 15:29 python
/data$ chmod 762 1.txt
/data$ ls -l
total 0
-rwxrw--w- 1 user user 0 Nov 23 15:29 1.txt
-rw-r--r-- 1 user user 0 Nov 23 15:29 2.txt
-rw-r--r-- 1 user user 0 Nov 23 15:29 3.txt
-rw-r--r-- 1 user user 0 Nov 23 15:29 4.txt
-rw-r--r-- 1 user user 0 Nov 23 15:29 py.py
drwxr-xr-x 2 user user 40 Nov 23 15:29 python
/data$

>> "ps" give information about running process:


— how much memory they are consuming and all

>> "kill process-id" to kill the running process:

You might also like