A command line, or terminal, is a text based interface to the system. You are able to enter commands by typing them on the keyboard and feedback will be given to you similarly as text.
The command line typically presents you with a prompt. As you type, it will be displayed after the prompt. Most of the time you will be issuing commands.
Within a terminal you have what is known as a shell. This is a part of the operating system that defines how the terminal will behave and looks after running (or executing) commands for you.
use a command called echo to display a system variable stating my current shell »> Typing ” echo $SHELL “ its Output in my terminal “ /usr/bin/zsh “
“explore the system”
“moving around the system”
Many tasks rely on being able to get to, or reference the correct location in the system. As such, this stuff really forms the foundation of being able to work effectively in Linux.
knowing new command like
“ls /etc” “its for tells ls not to list our current directory but instead to list that directories contents.”_
“ls -l /etc” “ ls with both a command line option and argument. As such it did a long listing of the directory /etc.”
### Whenever we refer to either a file or directory on the command line, we are in fact referring to a path. ie. A path is a means to get to a particular file or directory on the system.
There are 2 types of paths we can use, absolute and relative.
Absolute paths specify a location (file or directory) in relation to the root directory. You can identify them easily as they always begin with a forward slash ( / ).
-Example:”ls /home/ryan/Documents file1.txt file2.txt file3.txt”
Relative paths specify a location (file or directory) in relation to where we currently are in the system. They will not begin with a slash.
-Example:”ls Documents file1.txt file2.txt file3.txt”
*same result defferent pathes
***some more building blocks you may use to help build your paths:
“everything is actually a file”
Files can have any extension they like or none at all.”
Manual Pages - Learn how to make the most of the Linux commands you are learning.
“Instead of trying to remember everything, instead remember you can easily look stuff up in the man pages.” ** Think about it Like your FRIEND “The manual pages are a set of pages that explain every command available on your system including what they do, the specifics of how you run them and what command line arguments they accept. “
Move - ie. Move a file or directory (can also be used to rename).