Difference between revisions of "Linux command line"

From CoinWiki
Jump to: navigation, search
(Created page with "The Linux command line is an interface that allows the user to interact with the computer via texted based commands. === Common Commands === == Navigation == * pwd - Sho...")
 
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
The [[Linux command line]] is an interface that allows the user to interact with the computer via texted based commands.
+
The Linux command line takes user commands from a keyboard and gives them to the computer to perform.  
  
=== Common Commands ===
+
== Common Commands ==
  
== Navigation ==
+
=== Navigation ===
 
* pwd - Shows the working directory  
 
* pwd - Shows the working directory  
 
* ls - Lists files in working directory
 
* ls - Lists files in working directory
 +
** ls -a - show hidden files
 
* cd - Change working directory
 
* cd - Change working directory
 +
* less - View text files
 +
* file - Specifies files contents
  
== Manipulating Files ==
+
=== Manipulating Files ===
* cp - Copy directories and files
+
* cp - Copy files and directories
* mv - Rename or more files or directories
+
* mv - Rename or move files or directories
 +
* rm - Remove files and directories
 +
* mkdir - Create directory
 +
* cat - Display a file
 +
 
 +
=== Manipulating Processes ===
 +
* ps aux - To see what processes are running
 +
* tail - Show a file and the changes to it
 +
* fg - Bring a background process to the foreground
 +
* ctrl-c - Stop the current command
 +
 
 +
=== Assistance Commands ===
 +
* type - Display information about command type
 +
* which - Locate a command
 +
* help - Display reference page for shell commands
 +
* man - Display on-line command reference
 +
 
 +
__NOTOC__

Latest revision as of 23:30, 5 March 2018

The Linux command line takes user commands from a keyboard and gives them to the computer to perform.

Common Commands

Navigation

  • pwd - Shows the working directory
  • ls - Lists files in working directory
    • ls -a - show hidden files
  • cd - Change working directory
  • less - View text files
  • file - Specifies files contents

Manipulating Files

  • cp - Copy files and directories
  • mv - Rename or move files or directories
  • rm - Remove files and directories
  • mkdir - Create directory
  • cat - Display a file

Manipulating Processes

  • ps aux - To see what processes are running
  • tail - Show a file and the changes to it
  • fg - Bring a background process to the foreground
  • ctrl-c - Stop the current command

Assistance Commands

  • type - Display information about command type
  • which - Locate a command
  • help - Display reference page for shell commands
  • man - Display on-line command reference