102-Reading Notes
The following includes information I learned during the Coder’s Computer lesson.
A text editor is a piece of software that you download and install on your computer, or you access online through your web browser, that allows you to write and manage text, especially the text that you write to build a web site.
The most important features are:
No, the terminal is not a text editor (even though it can be used as one). The terminal is a program where you can issue commands to your system. Commands are nothing but binaries (executables in the form of binary language) and scripts located in specific paths of your system.
There are several text editor 3rd party software options that can be downloaded and installed to your computer from their respective websites. Each of these titles do have some if not all of the features that we talked about earlier, and most of this software is absolutely free! They are widely used in web development today. Below is one of my favorites that I am actively using.
Linux Tutorial Basic Navigation Source
pwd
- short for “Print Working Directory”. pwd tells you what your current or present working directory.
ls
- short for list”. Shares what’s in our current location.
ls -l
will display a list of contentsls [source option]
The square brackets ( [ ] ) mean that those items are optional, we may run the command with or without them. e.g. ls /welcome
displays a listing of contents of the /welcome
directoryThere are 2 types of paths we can use, absolute and relative. Whenever we refer to a file or directory we are using one of these paths. Whenever we refer to a file or directory, we can, in fact, use either type of path (either way, the system will still be directed to the same location).
To begin with, we have to understand that the file system under linux is a hierarchical structure. At the very top of the structure is what’s called the root directory. It is denoted by a single slash ( / ). It has subdirectories, they have subdirectories and so on. Files may reside in any of these directories.
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 ( / )
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.
In order to move around in the system, we use a command called cd which stands for change directory. It works as follows: `cd [location]’.
cd
- means “change directory”. If you type in only cd
, it will return you to the home directory.
cd DeltaV
will take you directly to the DeltaV directory.cd /
will take you to the root directory.cd ~
will take you to the home directoryfile [path]
can obtain information about what type of file a file or directory is.ls -a
can list the contents of a directory, including hidden files.The following are important points for files: