SlideShare a Scribd company logo
1 of 3
Download to read offline
LINUX IMPORTANT COMMANDS
1. top : Show Process
2. su : Sudo for enter as root (or) administrator
3. date : Current date and time
4. cal : Month’s calender
5. uptime : Current uptime
6. w : Who is online
7. whoami : Who you are logged in as
8. uname -a : Kernel information
9. free : Memory and Swap usage
10. touch : Create new file
11. cp : Copy
12. mv : Move
13. rm : Remove
14. ls -ls ll : List all
15. pwd : Current directory
16. man : Manual
17. ifconfig,ifconfig -s : Show IP address
18. hostname : Display hostname
19. wget : Download file from terminal
20. history : Command history
21. clear : Clear the command prompt
(I) DIRECTORY STRUCTURE
/
ROOT BIN SBIN ETC HOME LIB MNT PROC TMP USR VAR
PASSWD SHADOW BIN MAN SBIN LOG
1. ROOT : Root Accout’s Home Dir.
2. BIN & SBIN : Executable Programs are stored in BIN & SBIN.
3. ETC : There are two types.
1. PASSWD 2. SHADOW
Contains conf items like account information and hashed password.
4. HOME : Contains User’s Home Dir.
5. LIB : Contains Common Libraries.
6. MNT : Temp file systems are attached like CD-ROM (OR) USB Drive.
7. PROC : Virtual file system stores kernal information.
8. TMP : Contains Temporary Data.
9. USR : There are three types.
1. BIN : Contains USR program and other data.
2. MAN : Contains USR program and other data.
3. SBIN : Contains USR program and other data.
10. VAR -----> LOG : Variable data where system must be able to write during operation.
(II) ACCOUNTS
1. $ and #
2. su (or) su[Login Name]
3. whoami
4. passwd
5. id
(III) FILE SYSTEMS
1. cd [Dir Name] (or) cd ~
2. pwd
3. locate [File Name]
4. ls with -l (or) -a
5. mount CD-ROM and Eject
6. mkdir
7. rm
8. cp [Source Destination]
9. gedit [File Name]
10. cat [File Name]
11. less [File Name]
12. | [Piping]
(IV) RUNNING A PROGRAM
1. $PATH
2. ./program
3. PS aux
4. CTRL+C AND CTRL+Z
5. bg
6. jobs
7. fg job number
(V) LINUX BASIC NETWORKING COMMANDS
1. hostname : Host/Domain name and IP address.
2. netstat : Network connections, routing tables.
3. ping : Test network connections.
4. ifconfig : Getting network configuration.
5. nslookup : Query DNS lookup name.
6. telnet : Communicate with other host name.
7. traceroute : Outing steps that packets take to get to network host.
HOSTNAME
1. hostname : Displays the machines hostname.
2. hostname -d : Displays the domain name the machine belongs to.
3. hostname -f : Displays the fully qualified host and domain name.
4. hostname -i : Displays the IP address for the current machine.
NETSTAT
1. netstat -nap | grep port : Display process id of application which is using that port.
2. netstat -a (or) netstat -all : Display all connections including TCP and UDP.
3. netstat -tcp (or) netstat -t : Display only TCP connection.
4. netstat -udp (or) netstat -u : Display only UDP connection.
5. netstat -g : Display all multicast network suscribed by this host.
6. netstat -l : List only listening ports.
IFCONFIG
1. $> ifconfig -a : View all network configuration and settings.
2. $> ifconfig ethO : view specific network settings.
3. $> ifconfig ethO up (or) ifup ethO : Enabling ethO interface.
4. $> ifconfig ethO down (or) ifdown ethO : Disabling ethO interface.
NSLOOKUP
1. Discovers Hostname from IP address.
2. Discovers IP address from Hostname.
EX : $> nslookup google.com
TRACEROUTE
A Handy utility to view the number of hops and response time to get to a remote system (or)
website is traceroute. Again you need an internet connection to make use of this tool.
EX : $> traceroute google.com

More Related Content

What's hot

XPDS14: Linux on Xen: A Status Update - David Vrabel, Citrix
XPDS14: Linux on Xen: A Status Update - David Vrabel, CitrixXPDS14: Linux on Xen: A Status Update - David Vrabel, Citrix
XPDS14: Linux on Xen: A Status Update - David Vrabel, CitrixThe Linux Foundation
 
Networking in Gnu/Linux
Networking in Gnu/LinuxNetworking in Gnu/Linux
Networking in Gnu/LinuxAhmed Mekkawy
 
今日から始めるPlan 9 from Bell Labs
今日から始めるPlan 9 from Bell Labs今日から始めるPlan 9 from Bell Labs
今日から始めるPlan 9 from Bell LabsRyousei Takano
 
X86 assembly & GDB
X86 assembly & GDBX86 assembly & GDB
X86 assembly & GDBJian-Yu Li
 
Network & Filesystem: Doing less cross rings memory copy
Network & Filesystem: Doing less cross rings memory copyNetwork & Filesystem: Doing less cross rings memory copy
Network & Filesystem: Doing less cross rings memory copyScaleway
 
Introduction to Diskless Remote Boot in Linux
Introduction to Diskless Remote Boot in LinuxIntroduction to Diskless Remote Boot in Linux
Introduction to Diskless Remote Boot in LinuxJazz Yao-Tsung Wang
 
Managing the system and network connection Linux
Managing the system and network connection LinuxManaging the system and network connection Linux
Managing the system and network connection LinuxShriharsh Shendre
 
Linux booting process - Linux System Administration
Linux booting process - Linux System AdministrationLinux booting process - Linux System Administration
Linux booting process - Linux System AdministrationSreenatha Reddy K R
 
Bootloader and MMU (english)
Bootloader and MMU (english)Bootloader and MMU (english)
Bootloader and MMU (english)Sneeker Yeh
 
How to train your L3DSR with PBR - MEMO -
How to train your L3DSR with PBR - MEMO -How to train your L3DSR with PBR - MEMO -
How to train your L3DSR with PBR - MEMO -Naoto MATSUMOTO
 
Sistemas operacionais 8
Sistemas operacionais 8Sistemas operacionais 8
Sistemas operacionais 8Nauber Gois
 
6 stages of linux boot process
6 stages of linux boot process6 stages of linux boot process
6 stages of linux boot processsagarpdalvi
 
Linux : Booting and runlevels
Linux : Booting and runlevelsLinux : Booting and runlevels
Linux : Booting and runlevelsJohn Ombagi
 
Linux Server Start
Linux Server StartLinux Server Start
Linux Server StartGavin Quan
 
Nmap Scripting Engine and http-enumeration
Nmap Scripting Engine and http-enumerationNmap Scripting Engine and http-enumeration
Nmap Scripting Engine and http-enumerationRobert Rowley
 
Flex pod driven by Openstack
Flex pod driven by OpenstackFlex pod driven by Openstack
Flex pod driven by OpenstackMarton Kiss
 
packet traveling (pre cloud)
packet traveling (pre cloud)packet traveling (pre cloud)
packet traveling (pre cloud)iman darabi
 

What's hot (20)

XPDS14: Linux on Xen: A Status Update - David Vrabel, Citrix
XPDS14: Linux on Xen: A Status Update - David Vrabel, CitrixXPDS14: Linux on Xen: A Status Update - David Vrabel, Citrix
XPDS14: Linux on Xen: A Status Update - David Vrabel, Citrix
 
Networking in Gnu/Linux
Networking in Gnu/LinuxNetworking in Gnu/Linux
Networking in Gnu/Linux
 
Dns centos
Dns centosDns centos
Dns centos
 
今日から始めるPlan 9 from Bell Labs
今日から始めるPlan 9 from Bell Labs今日から始めるPlan 9 from Bell Labs
今日から始めるPlan 9 from Bell Labs
 
X86 assembly & GDB
X86 assembly & GDBX86 assembly & GDB
X86 assembly & GDB
 
Network & Filesystem: Doing less cross rings memory copy
Network & Filesystem: Doing less cross rings memory copyNetwork & Filesystem: Doing less cross rings memory copy
Network & Filesystem: Doing less cross rings memory copy
 
Introduction to Diskless Remote Boot in Linux
Introduction to Diskless Remote Boot in LinuxIntroduction to Diskless Remote Boot in Linux
Introduction to Diskless Remote Boot in Linux
 
Managing the system and network connection Linux
Managing the system and network connection LinuxManaging the system and network connection Linux
Managing the system and network connection Linux
 
Linux booting process - Linux System Administration
Linux booting process - Linux System AdministrationLinux booting process - Linux System Administration
Linux booting process - Linux System Administration
 
Bootloader and MMU (english)
Bootloader and MMU (english)Bootloader and MMU (english)
Bootloader and MMU (english)
 
DNS SERVER
DNS SERVERDNS SERVER
DNS SERVER
 
How to train your L3DSR with PBR - MEMO -
How to train your L3DSR with PBR - MEMO -How to train your L3DSR with PBR - MEMO -
How to train your L3DSR with PBR - MEMO -
 
Sistemas operacionais 8
Sistemas operacionais 8Sistemas operacionais 8
Sistemas operacionais 8
 
eTwinning - traceroute command
eTwinning - traceroute commandeTwinning - traceroute command
eTwinning - traceroute command
 
6 stages of linux boot process
6 stages of linux boot process6 stages of linux boot process
6 stages of linux boot process
 
Linux : Booting and runlevels
Linux : Booting and runlevelsLinux : Booting and runlevels
Linux : Booting and runlevels
 
Linux Server Start
Linux Server StartLinux Server Start
Linux Server Start
 
Nmap Scripting Engine and http-enumeration
Nmap Scripting Engine and http-enumerationNmap Scripting Engine and http-enumeration
Nmap Scripting Engine and http-enumeration
 
Flex pod driven by Openstack
Flex pod driven by OpenstackFlex pod driven by Openstack
Flex pod driven by Openstack
 
packet traveling (pre cloud)
packet traveling (pre cloud)packet traveling (pre cloud)
packet traveling (pre cloud)
 

Similar to Linuxtutorial (20)

Slides null puliya linux basics
Slides null puliya linux basicsSlides null puliya linux basics
Slides null puliya linux basics
 
Linux or unix interview questions
Linux or unix interview questionsLinux or unix interview questions
Linux or unix interview questions
 
Dos command for hackers
Dos command for hackersDos command for hackers
Dos command for hackers
 
Linux training
Linux trainingLinux training
Linux training
 
Linux filesystemhierarchy
Linux filesystemhierarchyLinux filesystemhierarchy
Linux filesystemhierarchy
 
Unix commands in etl testing
Unix commands in etl testingUnix commands in etl testing
Unix commands in etl testing
 
Unixcommandsinetltesting 130712050932-phpapp01
Unixcommandsinetltesting 130712050932-phpapp01Unixcommandsinetltesting 130712050932-phpapp01
Unixcommandsinetltesting 130712050932-phpapp01
 
Rhel3
Rhel3Rhel3
Rhel3
 
linux_Commads
linux_Commadslinux_Commads
linux_Commads
 
OS_lab_file.pdf
OS_lab_file.pdfOS_lab_file.pdf
OS_lab_file.pdf
 
Rhel1
Rhel1Rhel1
Rhel1
 
Advanced Level Training on Koha / TLS (ToT)
Advanced Level Training on Koha / TLS (ToT)Advanced Level Training on Koha / TLS (ToT)
Advanced Level Training on Koha / TLS (ToT)
 
Unix 3 en
Unix 3 enUnix 3 en
Unix 3 en
 
Install and configure linux
Install and configure linuxInstall and configure linux
Install and configure linux
 
Solaris basics
Solaris basicsSolaris basics
Solaris basics
 
BASIC COMMANDS OF LINUX
BASIC COMMANDS OF LINUXBASIC COMMANDS OF LINUX
BASIC COMMANDS OF LINUX
 
linux installation.pdf
linux installation.pdflinux installation.pdf
linux installation.pdf
 
Installing odoo v8 from github
Installing odoo v8 from githubInstalling odoo v8 from github
Installing odoo v8 from github
 
Clase4 (consola linux)
Clase4 (consola linux)Clase4 (consola linux)
Clase4 (consola linux)
 
CCNA CheatSheet
CCNA CheatSheetCCNA CheatSheet
CCNA CheatSheet
 

Recently uploaded

Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...jaredbarbolino94
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 

Recently uploaded (20)

Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 

Linuxtutorial

  • 1. LINUX IMPORTANT COMMANDS 1. top : Show Process 2. su : Sudo for enter as root (or) administrator 3. date : Current date and time 4. cal : Month’s calender 5. uptime : Current uptime 6. w : Who is online 7. whoami : Who you are logged in as 8. uname -a : Kernel information 9. free : Memory and Swap usage 10. touch : Create new file 11. cp : Copy 12. mv : Move 13. rm : Remove 14. ls -ls ll : List all 15. pwd : Current directory 16. man : Manual 17. ifconfig,ifconfig -s : Show IP address 18. hostname : Display hostname 19. wget : Download file from terminal 20. history : Command history 21. clear : Clear the command prompt (I) DIRECTORY STRUCTURE / ROOT BIN SBIN ETC HOME LIB MNT PROC TMP USR VAR PASSWD SHADOW BIN MAN SBIN LOG 1. ROOT : Root Accout’s Home Dir. 2. BIN & SBIN : Executable Programs are stored in BIN & SBIN. 3. ETC : There are two types. 1. PASSWD 2. SHADOW Contains conf items like account information and hashed password. 4. HOME : Contains User’s Home Dir. 5. LIB : Contains Common Libraries. 6. MNT : Temp file systems are attached like CD-ROM (OR) USB Drive. 7. PROC : Virtual file system stores kernal information. 8. TMP : Contains Temporary Data. 9. USR : There are three types. 1. BIN : Contains USR program and other data. 2. MAN : Contains USR program and other data. 3. SBIN : Contains USR program and other data. 10. VAR -----> LOG : Variable data where system must be able to write during operation.
  • 2. (II) ACCOUNTS 1. $ and # 2. su (or) su[Login Name] 3. whoami 4. passwd 5. id (III) FILE SYSTEMS 1. cd [Dir Name] (or) cd ~ 2. pwd 3. locate [File Name] 4. ls with -l (or) -a 5. mount CD-ROM and Eject 6. mkdir 7. rm 8. cp [Source Destination] 9. gedit [File Name] 10. cat [File Name] 11. less [File Name] 12. | [Piping] (IV) RUNNING A PROGRAM 1. $PATH 2. ./program 3. PS aux 4. CTRL+C AND CTRL+Z 5. bg 6. jobs 7. fg job number (V) LINUX BASIC NETWORKING COMMANDS 1. hostname : Host/Domain name and IP address. 2. netstat : Network connections, routing tables. 3. ping : Test network connections. 4. ifconfig : Getting network configuration. 5. nslookup : Query DNS lookup name. 6. telnet : Communicate with other host name. 7. traceroute : Outing steps that packets take to get to network host. HOSTNAME 1. hostname : Displays the machines hostname. 2. hostname -d : Displays the domain name the machine belongs to. 3. hostname -f : Displays the fully qualified host and domain name. 4. hostname -i : Displays the IP address for the current machine.
  • 3. NETSTAT 1. netstat -nap | grep port : Display process id of application which is using that port. 2. netstat -a (or) netstat -all : Display all connections including TCP and UDP. 3. netstat -tcp (or) netstat -t : Display only TCP connection. 4. netstat -udp (or) netstat -u : Display only UDP connection. 5. netstat -g : Display all multicast network suscribed by this host. 6. netstat -l : List only listening ports. IFCONFIG 1. $> ifconfig -a : View all network configuration and settings. 2. $> ifconfig ethO : view specific network settings. 3. $> ifconfig ethO up (or) ifup ethO : Enabling ethO interface. 4. $> ifconfig ethO down (or) ifdown ethO : Disabling ethO interface. NSLOOKUP 1. Discovers Hostname from IP address. 2. Discovers IP address from Hostname. EX : $> nslookup google.com TRACEROUTE A Handy utility to view the number of hops and response time to get to a remote system (or) website is traceroute. Again you need an internet connection to make use of this tool. EX : $> traceroute google.com