Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 32 additions & 26 deletions linux
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
Linux Intrduction


------------------
Linux Introduction :

- Linux is free and Open Source Operating System.
- Deveoped by Linus Torvalds.
Expand All @@ -21,7 +23,7 @@

- Under the root there are several subdirectories :

/home
/home
/root
/var
/etc
Expand All @@ -39,51 +41,53 @@ Boot: The process by which the computer is powered on.

Commands to Practice:

Pwd
cd
cd ~
cd ..
Pwd - Present working directory
cd - Change directory
cd ~
cd ..Moves one directory back

Listing files inside a directory:

ls -l
ls -ld
ls -l - Long listing ls is a shell command that lists files and directories within a directory. Displaying file type, permissions, owner, size, date of creation, and file names
ls -ld

s -a
ls -f
ls -lt
ls -lh
ls -lR

tree
tree - Display directory paths and optionally files in each subdirectory

cp -p source destination
cp -R source_dir destination_dir
cp -p source destination - Copy
cp -R source_dir destination_dir - copy recrusive

mv file1 file2
rm -i filenae
rm -R dir-name
rm -rf dir-name
rmdir dir-name
mkdir dir-name
mv file1 file2 - Move from file name 1 to file name 2
rm -i filenae - Remove the file name
rm -R dir-name - Remove the directory
rm -rf dir-name -
rmdir dir-name - Remove the diretory
mkdir dir-name - create directory

tuch filename
tuch filename - Create,change and modify the timestamps of a file

chmod
chmod - Change mode

echo "Hello World"


man
man - User manul in liux

dpkg -l - Install,remove and provide information about deb packages.

dpkg -l

hostname
hostname - Name given for computer

passwd
passwd - Password

whoami
whoami -User name of the current user

top
top -The top command allows users to monitor processes and system resource usage .... On a single core system, a load average of 0.4 means the system is doing ...

ps

Expand All @@ -98,13 +102,14 @@ tail
mkdir

ls -l

Owner rwr = 4+2+1 = 7
Group r-x = 4+0+1 = 5
other r-x = 4+0+1 = 5

chmod 755 test

test test

Vi editor:

vi -o [small o] - Horizontal Views
Expand All @@ -116,3 +121,4 @@ Escape Mode:
- pp paste
- dd delete
ctrl w is to switch between 2 files.

4 changes: 4 additions & 0 deletions test1
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Hello

Hiw are yu?