How to use linux Commands.

To use Linux commands you need to understand the Linux command terminal or Linux Shell as some say, to start using Linux commands open the Shell or the command terminal you would see a console window in that window you type the Linux commands to do your works some Linux commands are as fallows.

 

File Commands

  • ls – Directory listing
  • ls -al -Show listing with hidden files
  • cd dir – change directory to dir
  • cd- change to home
  • pwd – show current directory
  • mkdir file – create a directory with a name file
  • rm file – remove a file
  • rm -r file – delete a directory file
  • cp file1 file 2 – copy file1 to file2
  • touch file – create a file
  • cat > file – places stander input into file

System Commands

  • date – show the current date and time
  • cal -show the calender
  • uptime – show current up time
  •  w – display who is online
  • whoami – who you are logged in as
  • finger user – display information about user
  • uname -a – show kernel information
  • cat /proc/cpuinfo – shows cou information
  • cat /proc/meminfo – shows memory information
  • man command – shows manual of a command
  • free – show memory and swap usage

Net Work

  • ping host – ping host and output the results
  • whois domain – get the information for the domain
  • dig domin – get DNS information for the domain
  • wget -x host – reverse look up host
  • wget file – download a file
  • wget -c file – continue a stopped download

Installation

  • install from source file
  • ./configure  – software configurations
  • make
  • make install – install the software
  • dpkg -i pkg.deb – install a debian package
  • rmp -uvh pkg.rpm – install a package (Rpm)

Process management

 

  • ps – display currently active processes
  • top – display all  running processes
  • kill – kill process
  • killall – kill all process

Search Commands

  •  grep pattern files – search for patterns in files
  • locate file – find all instances of files
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s