Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
help:general_linux:linux_basics [2016/05/18 12:09]
jebailie [Programs, commands and your Shell]
help:general_linux:linux_basics [2016/05/18 12:15]
jebailie [Files, Directories and Paths]
Line 6: Line 6:
 ==== Files, Directories and Paths ==== ==== Files, Directories and Paths ====
  
-  * a @@file@@ is a collection of data with a name (a @@filename@@ to be precise).  Although it may be stored in seporate chuncks in different location on the hardware, programs will generaly work with a file as a single contiuous collection of data.+  * a //file// is a collection of data with a name (a //filename// to be precise).  Although it may be stored in separate chunks in different location on the hardware, programs will generaly work with a file as a single contiuous collection of data.
  
-  * a @@directory@@ is construct for grouping and organizing @@files@@.  In UNIX and Linux, @@directories@@ can contain, @@files@@, other @@directories@@@@links@@ and @@devices@@.  You may be use to calling directories @@folders@@ or @@namespaces@@+  * a //directory// is construct for grouping and organizing //files//.  In UNIX and Linux, //directories// can contain, //files//, other //directories////links// and //devices//.  You may be use to calling directories //folders// or //namespaces//
  
-  * a @@path@@ is a way of nameing the location of a file, directory, link or device.  @@Pathes@@ can be @@relative@@ or @@absolute@@ and are often used as the prefix to a filename. For example, if I want to list the contents of a directory that is in my home directory called ''cheese'', I can type: <code>ls ~/cheese/</code> +  * a //path// is a way of naming the location of a file, directory, link or device.  //Paths// can be //relative// or //absolute// and are often used as the prefix to a filename. For example, if I want to list the contents of a directory that is in my home directory called ''cheese'', I can type: <code>ls ~/cheese/</code> 
  
-  * a @@link@@ is a filesystem pointer.  You may be use to calling a @@link@@  an @@alias@@ or a @@shortcut@@  +  * a //link// is a filesystem pointer.  You may be use to calling a //link// an //alias// or a //shortcut//  
  
  
 ===== Shell commands ===== ===== Shell commands =====
  
-  * "ls, ls -a, ls -l, ls -la, etc. ": lists the files in your current working directory for that shell. +  * **//ls//**: lists the files in your current working directory for that shell. 
-  * cd directory : changes the current working directory to directory where directory may be a fully qualified path. A ~ indicates your home directory. ~bob indicates the home directory of bob. +    * more ways: **//ls -a, ls -l, ls -la//** 
-  * "rm filename: removes the file filename where filesname may be a fully qualified path +  * **//cd directory//** : changes the current working directory to directory where directory may be a fully qualified path. A ~ indicates your home directory. ~bob indicates the home directory of bob. 
-  * "cp source destination: copies the file source to the file destination where source and destination may be fully qualified paths. +  * **//rm filename//** : removes the file filename where filesname may be a fully qualified path 
-  * "mv source destination: the same as //cp//, but it moves the source file instead of copying it. mv can also be used to rename a file with mv oldname newmane +  * **//cp source destination//** : copies the file source to the file destination where source and destination may be fully qualified paths. 
-  * "chmod #### file or directory: changes the file or directory permissions for letter yourself and other people access your files. see //man chmod// for more info. +  * **//mv source destination//** : the same as //cp//, but it moves the source file instead of copying it. mv can also be used to rename a file with mv oldname newmane 
 +  * **//chmod #### file or directory//** : changes the file or directory permissions for letter yourself and other people access your files. see //man chmod// for more info.
 ===== Basic Utilities ===== ===== Basic Utilities =====