From caa86379268aced0220538df7a6c8eae8619c44a Mon Sep 17 00:00:00 2001 From: vl4dd Date: Tue, 6 Apr 2021 10:21:38 -0400 Subject: [PATCH] Adds notes about basic commands --- Linux/basic_cmd.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/Linux/basic_cmd.md b/Linux/basic_cmd.md index 5d34f85..93d6ec6 100644 --- a/Linux/basic_cmd.md +++ b/Linux/basic_cmd.md @@ -1,5 +1,33 @@ +# Theory + +## Absolute path +cd /etc +## relative path +../../../etc # Basic Linux Command +list current directory +> $ ls -l -a -r -t -h --help +ls = program +-l -a = parameters + +Man for manual +> $ man ls + +print working directory +> $ pwd + +change directory +> $ cd +back to precedent forlder +> $ cd - + +Make directory +> $ mkdir test1 test2 test3 + +> $ mkdir -p lol/lol/lol +-p to create parent directory if needed + Searching the PATH for executable files matching the names of the arguments > $ which ls