Title: Theory / Unimportant / CS / command line
Tags: fromDeuxSens

Name: mkdir rep
Definition: make the directory "rep"

Name: mkdir -p rep1/rep2
Definition: make the recursive directory "rep1/rep2"

Name: cd rep
Definition: change directory to rep

Name: cp file1 file2
Definition: copy file1 to file2

Name: cp file1 file2 rep
Definition: copy file1 and file2 in the directory rep

Name: cp -r rep1 rep2
Definition: copy the directory rep1 into rep2

Name: rsync -a rep1 rep2
Definition: copy the directory rep1 into rep2

Name: ln -s file1 file2
Definition: make file2 a symbolic to file1

Name: mv file1 file2
Definition: rename file1 into file2

Name: rm file1 file2
Definition: remove the files file1 and file2

Name: rmdir rep
Definition: remove the directory rep

Name: rm -rf rep
Definition: remove the non-empty directory rep

Name: ls rep
Definition: list the files of the directory rep

Name: ls -l rep
Definition: list the files of the directory rep with details

Name: ls -a rep
Definition: list the files of the directory rep with the ones beginning by dots

Name: ls -t rep
Definition: list the files of the directory rep, sorted by time

Name: ls -s rep
Definition: list the files of the directory rep, sorted by size

Name: ls -r rep
Definition: list the files of the directory rep, inversing the sorting order

Name: cat file1 file2
Definition: show the contant of file1 and then file2

Name: head -n file1
Definition: show the n first lines of file1

Name: tail -n file1
Definition: show the n last lines of file1

Name: grep a b
Definition: show all lines of b containing the word a

Name: grep -i a b
Definition: show all lines of b containing the expression a, indifferent to the case

Name: grep -v a b
Definition: show all lines of b except the one containing the regexp a