The pwd command shows the full path of your current directory in the terminal. It's super useful when youβre deep inside folders and forget where you are.
Example:
$ pwd
/home/sudostack/documents/projects
Options:
pwd -L β‘ Shows the logical path (including symbolic links).
pwd -P β‘ Shows the physical path (without symbolic links).
Simple but powerful!
Example:
$ pwd
/home/sudostack/documents/projects
Options:
pwd -L β‘ Shows the logical path (including symbolic links).
pwd -P β‘ Shows the physical path (without symbolic links).
Simple but powerful!
The cat command is used to view the contents of a file in the terminal. It can also combine multiple files into one. πβ‘π
Basic Usage:
$ cat filename.txt
(Displays the content of filename.txt)
Other Uses:
Combine multiple files:
$ cat file1.txt file2.txt > merged.txt
Number lines in output:
$ cat -n filename.txt
Display special characters:
$ cat -v filename.txt
A simple yet powerful command every Linux user should know! π§
Basic Usage:
$ cat filename.txt
(Displays the content of filename.txt)
Other Uses:
Combine multiple files:
$ cat file1.txt file2.txt > merged.txt
Number lines in output:
$ cat -n filename.txt
Display special characters:
$ cat -v filename.txt
A simple yet powerful command every Linux user should know! π§