Lect 1
-
In man cmd i must select the section I search for the cmd in it by → man -s [section number] [cmd] , cause if there is more than one cmd or filename with the same name it will pick the first one .
-
man -a [cmd] → list all matches
-
man –k keyword
Shows the commands that have manual pages that contains any of the
given keywords
-
-
- help , whatis , info → get information about cmds
-
pwd → printing working directory
Paths → absolute , relative
- relative → I stand in the place I want to deal with :
if i have dir1 → mkdir dir1/dir3 → dir3 created in dir1
- abs → writing the path from the root
- . . / → stepbacke once
- ls -R → list all the tree
- cd alone OR cd ~ [user] → go to the home directory
- cd . . → stepback one directory
- cd - → go to the previous dir (back)
- to create a hidden file make the first letter ( . ) → touch .file ,and to list them → ls -a → list all
ls -F → mark the dirs by putting / after thier names
- there is no extention in Linux
-
- at the end of file name means this file is executable (exe)