Skip to main content Skip to navigation

1.4 Conventions

The conventions for Linux commands might be a little different from what you're used to, if you have a background in Windows. The format of commands is very important in Linux. There are special characters in Linux, such as *, $, &, \, /, |, and ` but also the various whitespaces (spacebar, tab) are special characters. They are often circumvened when used in a filename. This to avoid confusion. An alternative to whitespace is to use dashes or underscores. In principle you can use them, but then they need to be 'escaped', by preceding the special character with a backslash, \. An example is \*. For the backslash itself it would be \\.


Examples of a bad file name are:
   March Report.pdf      t&rwalsh.doc   *myholiday*1.jpg     
Examples of a good file name are:
   March_Report.pdf      t-r.walsh.doc   myholiday_1.jpg    

File names are case sensitive, so the files output , Output and OUTPUT will be recognised as three different files under linux.