Comparaison des versions

Légende

  • Ces lignes ont été ajoutées. Ce mot a été ajouté.
  • Ces lignes ont été supprimées. Ce mot a été supprimé.
  • La mise en forme a été modifiée.

...

      rm filename                    : remove a file
      rm -r directory-name  : remove a directory with all its content
      rmdir directory-name : removes only empty directories

options:
      -i : interactive mode →  prompt for confirmation

Look at a ASCII/text

...

Files

cat filenamedisplay the whole file contents one screen
more filenamedisplay the file contents one screen at a time
less filenameprogram for browsing or paging through files or other output.
Can use arrow keys for scrolling forward or backward.
head filenamedisplay first 10 lines of a file. Option -n : display first n lines
tail filenamedisplay last 10 lines of a file. Option -n : display last n lines

Create/Modify ASCII/text Files

To add an empty file you can use the command 'touch':

      touch filename

To edit a file it is best to use an editor. For example:


Wild cards

A number of characters are interpreted by shell before any other action takes place. These characters are known as wildcard characters. Usually these characters are used in place of filenames or directory names.

...