Difference between revisions of "This Is Your Brain On Informatics: Linux Commands"

From Pathology Education Instructional Resource
Jump to: navigation, search
Line 1: Line 1:
 +
===General Linux Command Info===
 +
 +
<p>
 +
*Almost every single command should have an argument (an input for a function)
 +
*A filename in Linux refers to both a file's name and a directory's name
 +
</p>
 +
 
===Common Linux Commands===
 
===Common Linux Commands===
  
{|
+
{| class="wikitable"
 +
|-
 +
! Command
 +
! Syntax
 +
! Description
 
|-
 
|-
! Command !! Syntax !! Description
+
| cat
 +
| cat ''filename''
 +
| Display file’s contents to the standard output device (usually your monitor)
 
|-
 
|-
|
+
| cd
 +
| cd ''/pathname''
 +
| Change to the given directory
 
|-
 
|-
|
+
| chmod*
 +
| chmod ''options'' ''mode'' ''filename''
 +
| Changes a file's permissions.
 
|-
 
|-
 +
| chown*
 +
| chown ''options'' ''filename''
 +
|
 
|}
 
|}

Revision as of 07:12, 1 December 2013

General Linux Command Info

  • Almost every single command should have an argument (an input for a function)
  • A filename in Linux refers to both a file's name and a directory's name

Common Linux Commands

Command Syntax Description
cat cat filename Display file’s contents to the standard output device (usually your monitor)
cd cd /pathname Change to the given directory
chmod* chmod options mode filename Changes a file's permissions.
chown* chown options filename