Ceci est une ancienne révision du document !


Linux Essentials

  • pwd: Print current working directory (where am I?)
  • ls: File listing
  • ls –l: Detailed file listing, including permissions
  • cd: Change directory
  • chmod: Change file permissions
  • echo: Print something to the terminal
  • more: Show contents of a text file
  • nano: Text editor
  • man: Documentation on any Unix command

What directory am I currently in?

$ pwd
 
/Home/Users/kmazouzi

Create a directory named test_1

$ mkdir test_1
$ ls
 
test_1

Change into that directory, and verify that we are there.

$ cd test_1
$ pwd
 
/Home/Users/kmazouzi/test_1

Return to your home directory: cd with no arguments

$ cd

List of well known editors:

  • vi/vim: lightweight, complex, powerful, difficult to use
  • emacs: heavyweight, complex, powerful, difficult to use
  • nano: possibly the simplest editor to use

To edit a file:

nano filename
  • linux_essential.1492588763.txt.gz
  • Dernière modification : 2017/04/19 07:59
  • de admin