0% found this document useful (0 votes)
7 views1 page

Essential Linux Command List

This document lists and describes several common Linux commands: - echo prints text to the screen, pwd prints the current working directory, and cd changes directories. - ls lists files in a directory, touch creates an empty file, and file describes a file type. - The less command is used to page through text files, with options like q to quit, arrow keys to navigate, g to go to the start, and G to the end. - Other commands include history, clear, and cp to copy files.

Uploaded by

hjjh
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views1 page

Essential Linux Command List

This document lists and describes several common Linux commands: - echo prints text to the screen, pwd prints the current working directory, and cd changes directories. - ls lists files in a directory, touch creates an empty file, and file describes a file type. - The less command is used to page through text files, with options like q to quit, arrow keys to navigate, g to go to the start, and G to the end. - Other commands include history, clear, and cp to copy files.

Uploaded by

hjjh
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

List Of Commands :

• $ echo Hello World : echo like print


• $ pwd : pour (Print Working Directory
• $ cd /home/pete/Pictures ( change directory)
▪ . (current directory). This is the directory you are currently
in.
▪ .. (parent directory). Takes you to the directory above your
current.
▪ ~ (home directory). This directory defaults to your “home
directory”. Such as /home/pete.
▪ - (previous directory). This will take you to the previous
directory you were just at.

• $ ls : lister les fichiers existants dans le disque ( y a des fichiers cachees


donc on utilise -a)
• $ touch mysuperduperfile: créer un fichier vide porte ce nom.
• $ file [Link] : To find out what kind of file a file is, you can use the file
command. It will show you a description of the file’s contents.
• less [OPTIONS] filename

o q - Used to quit out of less and go back to your shell.


o Page up, Page down, Up and Down - Navigate using the arrow keys
and page keys.
o g - Moves to beginning of the text file.
o G - Moves to the end of the text file.
o /search - You can search for specific text inside the text document.
Prefacing the words you want to search with /
o h - If you need a little help about how to use less while you’re in less,
use help.

• $ history
• $ clear
• $ cp mycoolfile /home/pete/Documents/cooldocs

You might also like