SlideShare ist ein Scribd-Unternehmen logo
1 von 16
Linux Commands ,[object Object]
Commands ,[object Object],[object Object],[object Object],It is mostly useful for to check a network card and get the IP address quick Dsplay filesystem information Most common use: df -his ,[object Object]
Continued... ,[object Object],The chmod command allows you to alter access rights to files and directories. All files and directories have security permissions that grant the user particular groups’ or all other users’ access.  Most common use: chmod Then it may help you to type the command ls -alt to list all of your current files and directories before you start, so you can see your directory and files listed . Most common use: ls -alt ls -alt ,[object Object],[object Object],[object Object],[object Object],[object Object]
Continued... du Most common use: du -a Display usage Easily and quickly identify the size of files/programs in certain directories. A word of caution is that you should not run this command from the / directory. It will actually display size for every file on the entire Linux harddisk. find Find locations of files/directories quickly across entire filesystem This is a very powerful command and is best used when running as root or superuser.  The danger is that you will potentially look across every single file on every filesystem, so the syntax is very important.  The example shown allows you to search against all directories below / for the appname found in directories but only on the existing filesystem. It may sound complex but the example shown allows you to find a program you may need within seconds!
Continued... Most common use: find / -name appname -type d -xdev Find  continued.... replace the word appname with the name of a file or application like gimp ifconfig Most common use: ifconfig  and also ifconfig eth0 10.1.1.1 Command line tool to configure or check all network cards/interfaces Using the plain ifconfig command will show you the details of all the already configured network cards or interfaces. This is a great way to get a check that your network hardware is working properly.
Continued... init Most common use: init and also init 5 Allows you to change the server bootup on a specific runlevel Runlevel 5 is the default graphical runlevel for Linux servers This is a useful command, when for instance a servers fails to identify video type, and ends up dropping to the non-graphical boot-up mode (also called runlevel 3) nano Easy to use command line editors that are often included with the major Linux flavors Most common use: nano filename
Contiued... netstat Most common use: netstat  and also netstat |head and also netstat -r Summary of network connections and status of socket Netstat command simply displays all sockets and server connections. The top few lines are usually most helpful regarding webserver administration. Therefore if you are doing basic webserver work, you can quickly read the top lines of the netstat output by including the |head (pipe and head commands). Using the -r option gives you a very good look at the network routing addresses. This is directly linked to the route command. nslookup Checks the domain name and IP information of a server Most common use: nslookup www.hostname.com
Continued... Nslookup  continued.. You are bound to need this command for one reason or another. When performing server installation and configuration this command gives you the existing root server IP and DNS information and can also provide details from other remote servers ping Sends test packets to a specified server to check if it is responding properly Most common use: ping 10.0.0.0 replace the 10.0.0.0 with a true IP address This is an extremely useful command that is necessary to test network connectivity and response of servers.
Continued... ps Most common use: ps and also ps -A |more Lists all existing processes on the server The simple command will list every process associated with the specific user running on the server. This is helpful in case you run into problems and need to for instance kill a particular process that is stuck in memory rm Most common use: rm -r name Removes/deletes directories and files replace name with your file or directory name The -r option forces the command to also apply to each subdirectory within the directory. This will work for even non-empty directories. For instance if you are trying to delete the entire contents of the directory x which includes directories y and z this command will do it in one quick process.
Continued... route Lists the routing tables for your server Most common use: route -v This is pretty much the exact same output as the command netstat -r. You can suit yourself which you prefer to run. shred Most common use: shred -v filename Deletes a file securely by overwriting its contents The -v option is useful since it provides extra view of what exactly the shred tool is doing while you wait. On especially BIG files this could take a bit of time. The result is that your file is so thoroughly deleted it is very unlikely to ever be retrieved again.
Continued... sudo The super-user do command that allows you to run specific commands that require root access.  This command is useful when you are logged into a server and attempt a command that requires super-user or root privileges. Most common use: sudo command top Displays many system statistics and details regarding active processes Most common use: top This is a very useful system administrator tool that basically gives you a summary view of the system including number of users, memory usage, CPU usage, and active processes. Often during the course of a day when running multiple servers, one of my Xwindows workstations just displays the top command from each of the servers as a very quick check of their status and stability.
Continued... Allows you to change the timestamp on a file. touch Most common use: touch filename Using the basic touch command, as above, will simply force the current date and time upon the specified file. This is helpful, but not often used. traceroute Most common use: traceroute hostname Traces the existing network routing for a remote or local server replace hostname with the name of your server such as reallylinux.com This is a very powerful network command that basically gives the exact route between your machine and a server.
Continued... An extension of the who command that displays details of all users currently on the server w Most common use: w and also w -s This is a very important system admin tool I use commonly to track who is on the server and what processes they are running. It is obviously most useful when run as a superuser. who Tool used to monitor who is on the system and many other server related characteristics Most common use: who  and also who -q and also who -b The plain command just lists the names of users currently on the server
Continued... Who  continued.. Using the -q option allows you to quickly view just the total number of users on the system. Using the -b option reminds you how long it has been since you rebooted that stable Linux server! cd Type cd followed by the name of a directory to access that directory.  Keep in mind that you are always in a directory and allowed access to any directories hierarchically above or below. ,[object Object],[object Object],[object Object],[object Object],change directories
Continued... man Use man to pull up information about a Linux command Type man followed by a command to get detailed information about how to use the command.  Ex: man ls  Type man -k followed by a word to list all of the commands and descriptions that contain the word you specified.  Ex: man -k finger date Use date to set your server's date and time Type date followed by the two digit month, the two digit date, the two digit time, and two digit minutes. The syntax is easy enough and resembles this:  MMDDhhmm This command is helpful but must be used when superuser or logged in as root.  you can use the command such as:  date 11081300
Continued... clear Use clear to clear the command prompt Type clear to clean up your command prompt window. This is especially helpful when you are typing lots of commands and need a clean window to help you focus.Ex: clear   finger  Typing finger allows you to see who else is on the system or get detailed information about a person who has access to the system.  Type finger followed by the name of a user's account to get information about that user

Weitere ähnliche Inhalte

Was ist angesagt?

Linux basics part 1
Linux basics part 1Linux basics part 1
Linux basics part 1Lilesh Pathe
 
Linux Command Line Basics
Linux Command Line BasicsLinux Command Line Basics
Linux Command Line BasicsWe Ihaveapc
 
Quick Guide with Linux Command Line
Quick Guide with Linux Command LineQuick Guide with Linux Command Line
Quick Guide with Linux Command LineAnuchit Chalothorn
 
Linux Command Suumary
Linux Command SuumaryLinux Command Suumary
Linux Command Suumarymentorsnet
 
Unix Linux Commands Presentation 2013
Unix Linux Commands Presentation 2013Unix Linux Commands Presentation 2013
Unix Linux Commands Presentation 2013Wave Digitech
 
Basic commands
Basic commandsBasic commands
Basic commandsambilivava
 
linux-commandline-magic-Joomla-World-Conference-2014
linux-commandline-magic-Joomla-World-Conference-2014linux-commandline-magic-Joomla-World-Conference-2014
linux-commandline-magic-Joomla-World-Conference-2014Peter Martin
 
Some basic unix commands
Some basic unix commandsSome basic unix commands
Some basic unix commandsaaj_sarkar06
 
Linux Introduction (Commands)
Linux Introduction (Commands)Linux Introduction (Commands)
Linux Introduction (Commands)anandvaidya
 
Unix OS & Commands
Unix OS & CommandsUnix OS & Commands
Unix OS & CommandsMohit Belwal
 
Linux powerpoint
Linux powerpointLinux powerpoint
Linux powerpointbijanshr
 

Was ist angesagt? (20)

Linux basics part 1
Linux basics part 1Linux basics part 1
Linux basics part 1
 
Linux Command Line Basics
Linux Command Line BasicsLinux Command Line Basics
Linux Command Line Basics
 
Linux
LinuxLinux
Linux
 
Quick Guide with Linux Command Line
Quick Guide with Linux Command LineQuick Guide with Linux Command Line
Quick Guide with Linux Command Line
 
Linux commands
Linux commandsLinux commands
Linux commands
 
Linux commands
Linux commandsLinux commands
Linux commands
 
Linux Command Suumary
Linux Command SuumaryLinux Command Suumary
Linux Command Suumary
 
Linux commands
Linux commandsLinux commands
Linux commands
 
Unix Linux Commands Presentation 2013
Unix Linux Commands Presentation 2013Unix Linux Commands Presentation 2013
Unix Linux Commands Presentation 2013
 
Basic commands
Basic commandsBasic commands
Basic commands
 
Basic linux commands
Basic linux commandsBasic linux commands
Basic linux commands
 
Basic 50 linus command
Basic 50 linus commandBasic 50 linus command
Basic 50 linus command
 
linux-commandline-magic-Joomla-World-Conference-2014
linux-commandline-magic-Joomla-World-Conference-2014linux-commandline-magic-Joomla-World-Conference-2014
linux-commandline-magic-Joomla-World-Conference-2014
 
Some basic unix commands
Some basic unix commandsSome basic unix commands
Some basic unix commands
 
Linux basic commands
Linux basic commandsLinux basic commands
Linux basic commands
 
An Introduction To Linux
An Introduction To LinuxAn Introduction To Linux
An Introduction To Linux
 
Linux Introduction (Commands)
Linux Introduction (Commands)Linux Introduction (Commands)
Linux Introduction (Commands)
 
Linux commands
Linux commandsLinux commands
Linux commands
 
Unix OS & Commands
Unix OS & CommandsUnix OS & Commands
Unix OS & Commands
 
Linux powerpoint
Linux powerpointLinux powerpoint
Linux powerpoint
 

Andere mochten auch

Andere mochten auch (6)

Edify
EdifyEdify
Edify
 
SE project final report
SE project final reportSE project final report
SE project final report
 
Electronic dice
Electronic diceElectronic dice
Electronic dice
 
Basic linux commands
Basic linux commandsBasic linux commands
Basic linux commands
 
Arp and rarp
Arp and rarpArp and rarp
Arp and rarp
 
ARM Processor
ARM ProcessorARM Processor
ARM Processor
 

Ähnlich wie Linux commands

Linux Cheat Sheet.pdf
Linux Cheat Sheet.pdfLinux Cheat Sheet.pdf
Linux Cheat Sheet.pdfroschahacker
 
Learning Linux Series Administrator Commands.pptx
Learning Linux Series Administrator Commands.pptxLearning Linux Series Administrator Commands.pptx
Learning Linux Series Administrator Commands.pptxShashwat Shriparv
 
LINUX
LINUXLINUX
LINUXARJUN
 
Basics of Linux Commands, Git and Github
Basics of Linux Commands, Git and GithubBasics of Linux Commands, Git and Github
Basics of Linux Commands, Git and GithubDevang Garach
 
Chapter 2 Introduction to Unix Concepts
Chapter 2 Introduction to Unix ConceptsChapter 2 Introduction to Unix Concepts
Chapter 2 Introduction to Unix ConceptsMeenalJabde
 
Linux week 2
Linux week 2Linux week 2
Linux week 2Vinoth Sn
 
Power point on linux commands,appache,php,mysql,html,css,web 2.0
Power point on linux commands,appache,php,mysql,html,css,web 2.0Power point on linux commands,appache,php,mysql,html,css,web 2.0
Power point on linux commands,appache,php,mysql,html,css,web 2.0venkatakrishnan k
 
IntroCommandLine.ppt
IntroCommandLine.pptIntroCommandLine.ppt
IntroCommandLine.pptGowthamRaju15
 
55 best linux tips, tricks and command lines
55 best linux tips, tricks and command lines55 best linux tips, tricks and command lines
55 best linux tips, tricks and command linesArif Wahyudi
 
Introduction to Unix
Introduction to UnixIntroduction to Unix
Introduction to UnixSudharsan S
 

Ähnlich wie Linux commands (20)

Linux Cheat Sheet.pdf
Linux Cheat Sheet.pdfLinux Cheat Sheet.pdf
Linux Cheat Sheet.pdf
 
Linux
LinuxLinux
Linux
 
Nithi
NithiNithi
Nithi
 
Learning Linux Series Administrator Commands.pptx
Learning Linux Series Administrator Commands.pptxLearning Linux Series Administrator Commands.pptx
Learning Linux Series Administrator Commands.pptx
 
Linux Presentation
Linux PresentationLinux Presentation
Linux Presentation
 
Linuxs1
Linuxs1Linuxs1
Linuxs1
 
LINUX
LINUXLINUX
LINUX
 
Basics of Linux Commands, Git and Github
Basics of Linux Commands, Git and GithubBasics of Linux Commands, Git and Github
Basics of Linux Commands, Git and Github
 
Group13
Group13Group13
Group13
 
Chapter 2 Introduction to Unix Concepts
Chapter 2 Introduction to Unix ConceptsChapter 2 Introduction to Unix Concepts
Chapter 2 Introduction to Unix Concepts
 
Sandy Report
Sandy ReportSandy Report
Sandy Report
 
Sandy Report
Sandy ReportSandy Report
Sandy Report
 
lec1.docx
lec1.docxlec1.docx
lec1.docx
 
Linux week 2
Linux week 2Linux week 2
Linux week 2
 
Power point on linux commands,appache,php,mysql,html,css,web 2.0
Power point on linux commands,appache,php,mysql,html,css,web 2.0Power point on linux commands,appache,php,mysql,html,css,web 2.0
Power point on linux commands,appache,php,mysql,html,css,web 2.0
 
Linux presentation
Linux presentationLinux presentation
Linux presentation
 
IntroCommandLine.ppt
IntroCommandLine.pptIntroCommandLine.ppt
IntroCommandLine.ppt
 
IntroCommandLine.ppt
IntroCommandLine.pptIntroCommandLine.ppt
IntroCommandLine.ppt
 
55 best linux tips, tricks and command lines
55 best linux tips, tricks and command lines55 best linux tips, tricks and command lines
55 best linux tips, tricks and command lines
 
Introduction to Unix
Introduction to UnixIntroduction to Unix
Introduction to Unix
 

Mehr von Hemakumar.S

Health heart1 hemakumar
Health heart1 hemakumarHealth heart1 hemakumar
Health heart1 hemakumarHemakumar.S
 
Combobox with effect
Combobox with effectCombobox with effect
Combobox with effectHemakumar.S
 
Expanding a tree node
Expanding a tree nodeExpanding a tree node
Expanding a tree nodeHemakumar.S
 
Navigation keys in tree controls
Navigation keys in tree controlsNavigation keys in tree controls
Navigation keys in tree controlsHemakumar.S
 
Pop upbutton control
Pop upbutton controlPop upbutton control
Pop upbutton controlHemakumar.S
 
Pop up menubutton control
Pop up menubutton controlPop up menubutton control
Pop up menubutton controlHemakumar.S
 
Specifying tree control icons
Specifying tree control iconsSpecifying tree control icons
Specifying tree control iconsHemakumar.S
 
Tree user interaction
Tree user interactionTree user interaction
Tree user interactionHemakumar.S
 
Handling tree control events
Handling tree control eventsHandling tree control events
Handling tree control eventsHemakumar.S
 

Mehr von Hemakumar.S (19)

Health heart1 hemakumar
Health heart1 hemakumarHealth heart1 hemakumar
Health heart1 hemakumar
 
Linux commands
Linux commandsLinux commands
Linux commands
 
Reading123
Reading123Reading123
Reading123
 
Sudo
SudoSudo
Sudo
 
Linux
LinuxLinux
Linux
 
Drag and drop
Drag and dropDrag and drop
Drag and drop
 
Combobox with effect
Combobox with effectCombobox with effect
Combobox with effect
 
Expanding a tree node
Expanding a tree nodeExpanding a tree node
Expanding a tree node
 
Horizontal list
Horizontal listHorizontal list
Horizontal list
 
Image control
Image controlImage control
Image control
 
Navigation keys in tree controls
Navigation keys in tree controlsNavigation keys in tree controls
Navigation keys in tree controls
 
Pop upbutton control
Pop upbutton controlPop upbutton control
Pop upbutton control
 
Pop up menubutton control
Pop up menubutton controlPop up menubutton control
Pop up menubutton control
 
Tile list
Tile listTile list
Tile list
 
Specifying tree control icons
Specifying tree control iconsSpecifying tree control icons
Specifying tree control icons
 
Tree control
Tree controlTree control
Tree control
 
List control
List controlList control
List control
 
Tree user interaction
Tree user interactionTree user interaction
Tree user interaction
 
Handling tree control events
Handling tree control eventsHandling tree control events
Handling tree control events
 

Linux commands

  • 1.
  • 2.
  • 3.
  • 4. Continued... du Most common use: du -a Display usage Easily and quickly identify the size of files/programs in certain directories. A word of caution is that you should not run this command from the / directory. It will actually display size for every file on the entire Linux harddisk. find Find locations of files/directories quickly across entire filesystem This is a very powerful command and is best used when running as root or superuser. The danger is that you will potentially look across every single file on every filesystem, so the syntax is very important. The example shown allows you to search against all directories below / for the appname found in directories but only on the existing filesystem. It may sound complex but the example shown allows you to find a program you may need within seconds!
  • 5. Continued... Most common use: find / -name appname -type d -xdev Find continued.... replace the word appname with the name of a file or application like gimp ifconfig Most common use: ifconfig and also ifconfig eth0 10.1.1.1 Command line tool to configure or check all network cards/interfaces Using the plain ifconfig command will show you the details of all the already configured network cards or interfaces. This is a great way to get a check that your network hardware is working properly.
  • 6. Continued... init Most common use: init and also init 5 Allows you to change the server bootup on a specific runlevel Runlevel 5 is the default graphical runlevel for Linux servers This is a useful command, when for instance a servers fails to identify video type, and ends up dropping to the non-graphical boot-up mode (also called runlevel 3) nano Easy to use command line editors that are often included with the major Linux flavors Most common use: nano filename
  • 7. Contiued... netstat Most common use: netstat and also netstat |head and also netstat -r Summary of network connections and status of socket Netstat command simply displays all sockets and server connections. The top few lines are usually most helpful regarding webserver administration. Therefore if you are doing basic webserver work, you can quickly read the top lines of the netstat output by including the |head (pipe and head commands). Using the -r option gives you a very good look at the network routing addresses. This is directly linked to the route command. nslookup Checks the domain name and IP information of a server Most common use: nslookup www.hostname.com
  • 8. Continued... Nslookup continued.. You are bound to need this command for one reason or another. When performing server installation and configuration this command gives you the existing root server IP and DNS information and can also provide details from other remote servers ping Sends test packets to a specified server to check if it is responding properly Most common use: ping 10.0.0.0 replace the 10.0.0.0 with a true IP address This is an extremely useful command that is necessary to test network connectivity and response of servers.
  • 9. Continued... ps Most common use: ps and also ps -A |more Lists all existing processes on the server The simple command will list every process associated with the specific user running on the server. This is helpful in case you run into problems and need to for instance kill a particular process that is stuck in memory rm Most common use: rm -r name Removes/deletes directories and files replace name with your file or directory name The -r option forces the command to also apply to each subdirectory within the directory. This will work for even non-empty directories. For instance if you are trying to delete the entire contents of the directory x which includes directories y and z this command will do it in one quick process.
  • 10. Continued... route Lists the routing tables for your server Most common use: route -v This is pretty much the exact same output as the command netstat -r. You can suit yourself which you prefer to run. shred Most common use: shred -v filename Deletes a file securely by overwriting its contents The -v option is useful since it provides extra view of what exactly the shred tool is doing while you wait. On especially BIG files this could take a bit of time. The result is that your file is so thoroughly deleted it is very unlikely to ever be retrieved again.
  • 11. Continued... sudo The super-user do command that allows you to run specific commands that require root access. This command is useful when you are logged into a server and attempt a command that requires super-user or root privileges. Most common use: sudo command top Displays many system statistics and details regarding active processes Most common use: top This is a very useful system administrator tool that basically gives you a summary view of the system including number of users, memory usage, CPU usage, and active processes. Often during the course of a day when running multiple servers, one of my Xwindows workstations just displays the top command from each of the servers as a very quick check of their status and stability.
  • 12. Continued... Allows you to change the timestamp on a file. touch Most common use: touch filename Using the basic touch command, as above, will simply force the current date and time upon the specified file. This is helpful, but not often used. traceroute Most common use: traceroute hostname Traces the existing network routing for a remote or local server replace hostname with the name of your server such as reallylinux.com This is a very powerful network command that basically gives the exact route between your machine and a server.
  • 13. Continued... An extension of the who command that displays details of all users currently on the server w Most common use: w and also w -s This is a very important system admin tool I use commonly to track who is on the server and what processes they are running. It is obviously most useful when run as a superuser. who Tool used to monitor who is on the system and many other server related characteristics Most common use: who and also who -q and also who -b The plain command just lists the names of users currently on the server
  • 14.
  • 15. Continued... man Use man to pull up information about a Linux command Type man followed by a command to get detailed information about how to use the command. Ex: man ls Type man -k followed by a word to list all of the commands and descriptions that contain the word you specified. Ex: man -k finger date Use date to set your server's date and time Type date followed by the two digit month, the two digit date, the two digit time, and two digit minutes. The syntax is easy enough and resembles this: MMDDhhmm This command is helpful but must be used when superuser or logged in as root. you can use the command such as: date 11081300
  • 16. Continued... clear Use clear to clear the command prompt Type clear to clean up your command prompt window. This is especially helpful when you are typing lots of commands and need a clean window to help you focus.Ex: clear finger Typing finger allows you to see who else is on the system or get detailed information about a person who has access to the system. Type finger followed by the name of a user's account to get information about that user