2026-07-16 11:34
Status:
Tags: Coursera Google IT Certificate - Technical Support & Fundamentals Linux Commands Windows Linux Windows Commands Operating System Operating Systems and You - Becoming a Power User
OS&Y - Module 1 - Navigating The System
==Basic Commands
-
Windows: List Directories in a GUI:
-
There is a main directory
-
There is also then paths for given directories
-
Directories are different folders
-
Root directory is the main file folder for a given directory chain
-
each letter inside of windows is it’s own file system
-
sub directories are separated from root directories via a backslash \ in windows, but a forward slash / in linux
-
A directory is basically a folder
-
There are things like hidden files that are hidden to regular users
-
In the windows GUI, you can see them by going to view, and adjusting the options for what you can see and not
-
In linux you can use Ctrl h for this purpose
-
If you want to see file information for a file, you can do so by right clicking on it and selecting properties
-
These are things like size, name, location, time created, if you want it hidden or not, and some advanced options
-
There is also security and other things as well
-
The previous versions tabs lets you restore older versions of files
-
-
Learn about ‘Size’ vs ‘Size of Disk’ in Windows:
- Size is the exact byte count of a file’s actual data. Size on disk is the physical space the file occupies on your drive. The size on disk is usually larger because storage drives allocate fixed chunks of space called “clusters” (typically 4 KB). If a file is smaller than a cluster, it still occupies the entire cluster, wasting the leftover space.
-
Windows: List Directories in a CLI:
- Command Prompt: cmd.exe
- PowerShell: powershell.exe
- These are both different command prompts, they are basically the same (powershell is a bit more right to use but whatever)
- To open powershell, just look it up in your apps folder, or use super + r and type it in (cmd too)
-
Linux: List Directories:
- Everything starts in the root directory, basically the /, there is no letter drives
- All other things come inside of this root
- There a lot of sub directories that are important to the OS in the root file system, like bin, which stores the system binaries, mnt which stores the mounted drives, etc which stores configuration, home which is basically all the user stuff, and more
-
Windows: Changing Directories in the GUI:
- Absolute paths are ones that start in the root directory
- relative paths are paths that you are currently in
-
Windows: Changing Directories in the CLI:
- Whenever you open powershell it shows you what directory you are in
- you can use print working directory (pwd) command to list it though
- You can also open directories in different locations from the GUI
- you can change your current directory my using the
cd <path>command - You can be more fancy using something like
cd ..\Desktopif you want to go back a directory and change it there - You can also use
tabin order to auto fill in the thing that you want to type in, so you can type in D and then have it auto fill in the first directory matching that letter
-
Linux: Changing Directories in Bash:
- The commands in shell are basically the exact same as they are in bash
- Make sure that you use the forward slashes though, especially if you do the same fancy cd stuff
- Also the auto correct with tab is not the same, it will instead show all of the available options
-
Windows: Make Directories in the GUI & CLI:
- You can right click, have new, and then basically click add new folder
- in order to do this in the powershell, you just make it with
mkdiryou can also then use spaces by doing the back-tick space trick - You can also use encase it inside of a string
-
Linux: Make Directories in Bash:
- You can also make a new directory with mkdir in a given working directory
- You instead use \ space in order to have spaces, or you can also just put it inside of quotes
-
Windows: Command History:
- You can basically just press up on the arrow keys to reuse a different command
- You can also type in history in order to see which commands you used
- You can also search through them using ctrl + r and it will let you basically auto fill in what you want to type in
-
Linux: Command History:
- Basically the exact same as windows haha
-
Windows: Copying Files & Directories:
- In the GUI, you can use control c and control v, or just right click and click copy then right click and click paste
- you can also use the CLI
- in the CLI you use the
cp <file/path name> <destination path>in order to copy files - Wildcard- a character that is used to help select files based on a certain pattern
- You can use something like
*.jpgin order to get all of the given files with that file extension at once
-
Linux: Copying Files & Directories:
- A lot of it is exactly the same as windows is, the * thing also works the same as well
- You also need the recursive flag, but it is -r instead of -recursive
-
Windows: Moving and Renaming Files, Directories:
- You can also basically rename files by using the
mvcommand, and essentially you just don’t change the directory it is in, but instead just what it is called - like
mv firstName.txt secondName.txt - You can also obviously change the location of the file as well
- You can also basically rename files by using the
-
Linux: Moving and Renaming Files, Directories:
- Yo, literally the exact same as windows
-
Windows: Removing Files, Directories:
- If you want to delete a folder in gui, just delete one with the right click, or press backspace on it
- You can also use the
rmcommand, with whatever path you wish to use. You have to be careful because it removes things without adding them over to the recycling bin - You can also make sure that you do not want to remove things you do not have permission to remove
-
Linux: Removing Files & Directories:
- Same shit as windows
==File and Text Manipulation
-
Windows: Display File Contents:
- You can double click on the file to see it’s inner content
- You can also change the default program that it used to open the file contents
- You can use the
catcommand inside of powershell - You can also use the
morecommand in order to list only a single page of a document inside of a larger file, it pauses whenever it fills up the powershell window
-
Linux: Display File Contents:
- Basically the same, but instead of -Tail and -Head being a part of the cat command, they are their own separate commands
- The more command is also called the less command instead inside of bash
-
Windows: Modifying Text Files:
- You can edit text based files inside of notepad if you want, but use better things than that man, like vscode, or even notepad++ like they recommend
- There is no good default editor for the windows CLI, but you can start it up with some other app using things like
start code/notepad++ filename.txt
-
Linux: Modifying Text Files:
- There are many popular text editors to edit files
- nano is basically goated
- type in nano and then the file name, you can just edit it given their own style that it wants you to
- Nano is cool also because it’s actually inside of the terminal
- Some people also use VIM and Emacs though, I haven’t tried them personally
-
Windows Powershell:
-
There is basically a bunch of really fancy powershell language stuff in order to have more general access and power inside of the PowerShell terminal
-
There are a lot of these fancy commands and they all do different things
-
Notably:
Get-Help- gives help for a given commandGet-Alias- shows the underlying powershell language command being run in reference to the inputted command nameGet-ChildItem- basically ls
-
You can run either powershell or cmd. exe commands, they are slightly different
-
-
Windows: Searching within Files:
-
You can control-f inside of a given application to find something, you can also do things like maybe control-alt/shift-f in order to search across all files for some applications
-
The standard is not given across an application and might be different when compared to others
-
To search for something in the CLI, you use the ‘windows search service’, it looks through your files on your computer and gets metadata for them (they’re stealing your data), but it basically lets you find files based on this stealing
-
You can change these options via the indexing options applications inside of the windows gui options
-
This lets you use the search bar in order to see files you might have on your drive
-
You can also search for things in the CLI using the
Select-Stringcommand, followed by what you want to search for, and where you want to be searched
-
-
Linux: Searching Within Files:
- YEAHHH BABY, GREP
-
Windows: Input, Output, and the Pipeline:
- You can use echo to output stuff into files
- You can then use cat in order to see their contents, although I am pretty sure you can just do the same with echo
- Since it is all written in c, it uses things like stderr, stdin, stdout basically
- You can use things like ’>’ to change where you want to send the output
==Glossary
Absolute path: It is one that starts from the main directory
Alias: A nickname for common commands
Appending flags: A way to add the data of the file without erasing existing data
Bash: The language used to interact with the shell
CLI: Command line interpreter
Command line: A text interface program for a computer that inputs text commands and translates them to the operating system
Escape characters: A concept that means that the next character after the back tick should be treated literally
.exe: A file extension found in Windows for an executable file
Groups: A collection of users
GUI: A graphical user interface
Hidden files: A set of files that are not visible either to avoid alteration or simply because you don’t want someone to see them
Hot key: A keyboard shortcut that does a particular task
I/O Streams: An input stream handles data flowing into and out of a program
Parameter: A value that is associated with a command
Parent directory & child directories: A parent directory is a directory that houses all subsequent child directories
Paths: A main directory that branches off and holds other directories and files
Prompt: A prompt shows you which directory you’re currently in
Regular expression: A pattern matching language that describes words, phrases, or more complicated patterns; regular expressions are used to help you do advanced pattern based selection
Relative path: It is a path from your current directory
Root directory: A parent directory for all other directories in a file system
Shell: A shell is a command line interpreter for Linux
Standard error (stderr): A data stream that redirect the output of error messages in a different output stream. It works both in Linux and Windows
Standard In (stdin): A data stream in which the input that you provide through the keyboard goes to the standard in stream of the process that you’re interacting with. It works both in Linux and Windows
Standard out (stdout): A data stream that when a process creates output, it adds data to the standard out stream, which flows out of the process. It works both in Linux and Windows
Stdin, stdout, stderr: Three data streams created when you launch a Linux command
Subdirectories: A directory below or at a deeper level in the directory hierarchy
Tab completion: A way to auto-complete a command or file names and directories
Wildcard: A character that is used to help select files based on a certain pattern
Windows Search service: A service that indexes files on your computer by looking through them on a schedule