SlideShare a Scribd company logo
Basic Command For Linux / Backtrack

Ubuntu ျကက္ျကက္ Backtrack

ျကက္ျကက္ Linux Base System
ကိုကုံးကဲ့ကူကိုက္းကိá

€€á€€á€¹á€·á€€á€²á€· အေျကကံ Command
ကိုက္းေကးေကြကါ
အကြက္က်က္ကားကကာေကာ့á€

€á€€á€­á€¯á€€á€«á€€á€°á€¸
ကုံးကက္ကဲ့ကျကက္းျကကá€
¹á€¸

အကြက္ကကြားကါကိက့္ကကá
€¹â€¦â€¦â€¦â€¦â€¦â€¦.:P
ကုံးကားကဲ့ကကားကုံးေကá

€¼á€€
ကိက္အကက္ျကီးကကုက္ကိá€
¯á€·á€€á€¬á€€á€¬á€€á€»á€€á€€á€¹á€±á€€á€¬á€·á€€á€«á€€á€°á€¸
ကက္ကက္ကက္ကက္ကါကက္
ကဲကကိုက္ကေအာက္………:P

File Command

ls   directory listing

ls -al   formatted listing with hidden files

cd dir   Change directory to dir

cd   Change to home

pwd   show current directory
mkdir dir   create a directory dir

rm file   delete file

rm -r dir -delete directory dir

rm -f file   force remove file

rm -rf dir   force remove directory dir*

cp file1 file2   copy file1 to file2

cp -r dir1 dir2   copy dir1 to dir2 ; create dir2 if it doesn t exit

mv file1 file2   rename or move file1 to file2 ;if file2 is an existing directory , move file1 into
directory file2

ln -s file link   create symbolic link link to file

touch file   create or update file

cat > file   places standard input into file

more file   output the contents of file

head file   output the first 10 lines of file

tail file   out put the last 10 lines of file

tail -f file   output the contents of file as it grows, starting with the last 10 lines

Installation

Install form source

./ configure

make
make install

dpkg -i pkg.deb   install a package (debian)

rpm -Uvh pkg.rpm   install a package (RPM)

Network

Ping host   ping host and output results

whois domain   get whois information for domain

dig domain   get DNS information for domain

dig -x host   reverse lookup host

wget file   download file

wget -c file   continue a stopped download

Shortcuts

Ctrl+C   halts the current command

Ctrl+Z   stops the current command resume with fg in the foreground or bg in the
background

Ctrl+D   log out of current session, similar to exit

Ctrl+W   erases one word in the current line

Ctrl+U   erases the whole line

Ctrl+R   type to bring up a recent command ……..repeats the last command

exit   log out of current session

Compression
tar cf file.tar files   created a tar named file.tar containing files

tar xf file.tar -extract the files from file.tar

tar czf file.tar.gz files   create a tar with Gzip compression

tar xzf file.tar.gz   extract a tar using Gzip

tar cjf file.tar.bz2   create a tar wiht Bzip2 compression

tar xjf file.tar.bz2- extract a tar using Bzip2

gzip file   compresses file and rename it to file.gz

gzip -d file.gz   decompress file.gz back to file

Searching

grep pattern file   search for a pattern in file

grep -r pattern dir   search recursively for pattern in dir

command | grep pattern   search for pattern in the output command

locate file   find all instances of file

SSH

ssh user@host   connect to host as user

ssh -p port user@host   connect to host on port on port as user

ssh -copy -id user@host- add your key to host for user to enable a keyed or passwordless login

File Permissions

chmod octal file   change the premission of file to octal , which can be found separately for
user,gruop and world by adding :
4   read (r)

2   write (w)

1   execute (x)

Examples;

chmod 777   read, write ,execute for all

chmod 755   rwx for owner , rx for group and world For more option see man chmod .

Process Management

ps   display your currently active processes

top   display all running processes

kill pid   kill process id pid

killall proc   kill all processes and named proc*

bg   lists stopped for background jobs: resume a stopped job in the background

fg -brings the most recent job to foreground

fg n   brings job n to the foreground

System Info

date   show the current date and time

cal - show this month calendar

uptime   show current uptime

w   display who is online

whoami   who you are logged in as
finger user   display information about the user

uname -a   show kernel information

cat / proc/ cpuinfo   cpu information

cat / proc/ meminfo   memory information

man command   show the manual for command

df   show disk usage

du   show directory space usage

free   show memory and swap usage

whois app   show possible location of app

which app   show which app will be run by defult

အေျကကံကို့ေျကာေကကက့္

ေကာ္ေကာ့္ကိုကုံကါကက္
ကီကာေကြကိုအကုက္ကကွကá

€¹á€€á€­á€€á€€á€¹á€±á€€á€¬á€€á€¹á€€á€½á€€á€²á€€á€²á€±á€€á€¸
ေကာ့ကိကားကက့္ကက္ကို့á
€€á€€á€¹á€€á€«á€€á€€á€¹â€¦â€¦â€¦..

ကက္ကက္ျကိုးကားကါအုံးá
€€á€€á€¹â€¦

More Related Content

PDF
Linux Commands - Cheat Sheet
PDF
Containers for sysadmins
DOCX
Dns centos
TXT
Crack.ba
PPTX
DNS SERVER
PDF
GoLang & GoatCore
ODP
Go Replicator
PDF
[PDF] 2021 Termux basic commands list
Linux Commands - Cheat Sheet
Containers for sysadmins
Dns centos
Crack.ba
DNS SERVER
GoLang & GoatCore
Go Replicator
[PDF] 2021 Termux basic commands list

What's hot (20)

DOCX
List command linux fidora
PPTX
Linux Commands
PDF
Termux commands-list
DOCX
50 most frequently used unix
PDF
Linux command line
PDF
Tomáš Čorej - OpenSSH
ODT
Terminal linux commands_ Fedora based
PPTX
Perintah perintah dasar linux Operating Sistem
PPT
Processes And Job Control
PPT
Linux Commands
ODP
Rpm Introduction
KEY
PPTX
50 Perintah Dasar pada linux
DOCX
50 Most Frequently Used UNIX Linux Commands -hmftj
PDF
Unix command quickref
PDF
linux_Commads
TXT
PDF
Biicode OpenExpoDay
List command linux fidora
Linux Commands
Termux commands-list
50 most frequently used unix
Linux command line
Tomáš Čorej - OpenSSH
Terminal linux commands_ Fedora based
Perintah perintah dasar linux Operating Sistem
Processes And Job Control
Linux Commands
Rpm Introduction
50 Perintah Dasar pada linux
50 Most Frequently Used UNIX Linux Commands -hmftj
Unix command quickref
linux_Commads
Biicode OpenExpoDay
Ad

Similar to Basic command for linux (20)

DOC
Most frequently used unix commands for database administrator
PDF
Linux Commands CheatSheet - PDF.pdf for engineer
ODP
Linux Capabilities - eng - v2.1.5, compact
PDF
Unit 10 investigating and managing
PDF
Clase10 (consola linux)
DOCX
50 most frequently used unix
PDF
Basic linux commands
PDF
The one page linux manual
PDF
The one page linux manual
PDF
Bash cheat sheet
PDF
Bash cheat sheet
PDF
Clase4 (consola linux)
PDF
Linux cheat sheet
PPTX
Working with clusters, shell profiles, UNIX extras..pptx
PDF
Basic linux commands for bioinformatics
PPTX
Ultimate Unix Meetup Presentation
PPTX
Linux tech talk
PDF
Linux Common Command
PDF
Aix commands
PPT
Examples -partII
Most frequently used unix commands for database administrator
Linux Commands CheatSheet - PDF.pdf for engineer
Linux Capabilities - eng - v2.1.5, compact
Unit 10 investigating and managing
Clase10 (consola linux)
50 most frequently used unix
Basic linux commands
The one page linux manual
The one page linux manual
Bash cheat sheet
Bash cheat sheet
Clase4 (consola linux)
Linux cheat sheet
Working with clusters, shell profiles, UNIX extras..pptx
Basic linux commands for bioinformatics
Ultimate Unix Meetup Presentation
Linux tech talk
Linux Common Command
Aix commands
Examples -partII
Ad

Recently uploaded (20)

PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
KodekX | Application Modernization Development
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Approach and Philosophy of On baking technology
PPTX
Spectroscopy.pptx food analysis technology
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Machine learning based COVID-19 study performance prediction
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Encapsulation theory and applications.pdf
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
Cloud computing and distributed systems.
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
Big Data Technologies - Introduction.pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
The AUB Centre for AI in Media Proposal.docx
Mobile App Security Testing_ A Comprehensive Guide.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
KodekX | Application Modernization Development
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Approach and Philosophy of On baking technology
Spectroscopy.pptx food analysis technology
Programs and apps: productivity, graphics, security and other tools
The Rise and Fall of 3GPP – Time for a Sabbatical?
Machine learning based COVID-19 study performance prediction
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
MYSQL Presentation for SQL database connectivity
Encapsulation theory and applications.pdf
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Cloud computing and distributed systems.
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Big Data Technologies - Introduction.pptx

Basic command for linux

  • 1. Basic Command For Linux / Backtrack Ubuntu ျကက္ျကက္ Backtrack ျကက္ျကက္ Linux Base System á€€á€­á€¯á€€á€¯á€¶á€¸á€€á€²á€·á€€á€°á€€á€­á€¯á€€á€¹á€¸á€€á€­á €€á€€á€¹á€·á€€á€²á€· အေျကကံ Command ကိုက္းေကးေကြကါ အကြက္က်က္ကားကကာေကာ့ဠ€á€€á€­á€¯á€€á€«á€€á€°á€¸ ကုံးကက္ကဲ့ကျကက္းျကကဠ¹á€¸ á€¡á€€á€¼á€€á€¹á€€á€€á€¼á€¬á€¸á€€á€«á€€á€­á€€á€·á€¹á€€á€€á €¹â€¦â€¦â€¦â€¦â€¦â€¦.:P á€€á€¯á€¶á€¸á€€á€¬á€¸á€€á€²á€·á€€á€€á€¬á€¸á€€á€¯á€¶á€¸á€±á€€á €¼á€€ ကိက္အကက္ျကီးကကုက္ကိဠ¯á€·á€€á€¬á€€á€¬á€€á€»á€€á€€á€¹á€±á€€á€¬á€·á€€á€«á€€á€°á€¸ ကက္ကက္ကက္ကက္ကါကက္ ကဲကကိုက္ကေအာက္………:P File Command ls   directory listing ls -al   formatted listing with hidden files cd dir   Change directory to dir cd   Change to home pwd   show current directory
  • 2. mkdir dir   create a directory dir rm file   delete file rm -r dir -delete directory dir rm -f file   force remove file rm -rf dir   force remove directory dir* cp file1 file2   copy file1 to file2 cp -r dir1 dir2   copy dir1 to dir2 ; create dir2 if it doesn t exit mv file1 file2   rename or move file1 to file2 ;if file2 is an existing directory , move file1 into directory file2 ln -s file link   create symbolic link link to file touch file   create or update file cat > file   places standard input into file more file   output the contents of file head file   output the first 10 lines of file tail file   out put the last 10 lines of file tail -f file   output the contents of file as it grows, starting with the last 10 lines Installation Install form source ./ configure make
  • 3. make install dpkg -i pkg.deb   install a package (debian) rpm -Uvh pkg.rpm   install a package (RPM) Network Ping host   ping host and output results whois domain   get whois information for domain dig domain   get DNS information for domain dig -x host   reverse lookup host wget file   download file wget -c file   continue a stopped download Shortcuts Ctrl+C   halts the current command Ctrl+Z   stops the current command resume with fg in the foreground or bg in the background Ctrl+D   log out of current session, similar to exit Ctrl+W   erases one word in the current line Ctrl+U   erases the whole line Ctrl+R   type to bring up a recent command ……..repeats the last command exit   log out of current session Compression
  • 4. tar cf file.tar files   created a tar named file.tar containing files tar xf file.tar -extract the files from file.tar tar czf file.tar.gz files   create a tar with Gzip compression tar xzf file.tar.gz   extract a tar using Gzip tar cjf file.tar.bz2   create a tar wiht Bzip2 compression tar xjf file.tar.bz2- extract a tar using Bzip2 gzip file   compresses file and rename it to file.gz gzip -d file.gz   decompress file.gz back to file Searching grep pattern file   search for a pattern in file grep -r pattern dir   search recursively for pattern in dir command | grep pattern   search for pattern in the output command locate file   find all instances of file SSH ssh user@host   connect to host as user ssh -p port user@host   connect to host on port on port as user ssh -copy -id user@host- add your key to host for user to enable a keyed or passwordless login File Permissions chmod octal file   change the premission of file to octal , which can be found separately for user,gruop and world by adding :
  • 5. 4   read (r) 2   write (w) 1   execute (x) Examples; chmod 777   read, write ,execute for all chmod 755   rwx for owner , rx for group and world For more option see man chmod . Process Management ps   display your currently active processes top   display all running processes kill pid   kill process id pid killall proc   kill all processes and named proc* bg   lists stopped for background jobs: resume a stopped job in the background fg -brings the most recent job to foreground fg n   brings job n to the foreground System Info date   show the current date and time cal - show this month calendar uptime   show current uptime w   display who is online whoami   who you are logged in as
  • 6. finger user   display information about the user uname -a   show kernel information cat / proc/ cpuinfo   cpu information cat / proc/ meminfo   memory information man command   show the manual for command df   show disk usage du   show directory space usage free   show memory and swap usage whois app   show possible location of app which app   show which app will be run by defult အေျကကံကို့ေျကာေကကက့္ ေကာ္ေကာ့္ကိုကုံကါကက္ á€€á€®á€€á€¬á€±á€€á€¼á€€á€­á€¯á€¡á€€á€¯á€€á€¹á€€á€€á€½á€€á €¹á€€á€­á€€á€€á€¹á€±á€€á€¬á€€á€¹á€€á€½á€€á€²á€€á€²á€±á€€á€¸ á€±á€€á€¬á€·á€€á€­á€€á€¬á€¸á€€á€€á€¹á€·á€€á€€á€¹á€€á€­á€¯á€·á €€á€€á€¹á€€á€«á€€á€€á€¹â€¦â€¦â€¦.. á€€á€€á€¹á€€á€€á€¹á€»á€€á€­á€¯á€¸á€€á€¬á€¸á€€á€«á€¡á€¯á€¶á€¸á €€á€€á€¹â€¦