Linux commands - 2
More Linux Commands
We need to talk about the composition of command prompt
~
: The current directory. Inbash
, which is the default shell, the~
, or tilde, is a special character that expands to the path of the current user's home directory; in this case, it represents/home/ohhhvictor
$
: The prompt symbol. This denotes the end of the command prompt, after which the user's keyboard input will appear
Remember that CD / is to go to the root
How to move to a different folder
Now from "Documents", we want to reach to the "Pictures" file
What can we do? Let's recap some commands
- ls: Display directory contents such as folders and files.
- mkdir: Used to create a new directory.
- pwd: Shows the current directory.
- top: Display system running processes and resource usage.
- grep: Search a specific pattern in a file.
- cat: Through this command, users can add multiple files and also display the content of the files.
- tar: Archives directories and files into a tarball.
- wget: Download files from the browser or web.
- free: Shows memory usage.
- df: Shows disk space usage.
- man: Gives a manual page for a specific command that displays instructions and details.
- using /$ You are in root
- using ~/Documents You are using tilde, using your user's home
Now let's try to go to Music folder and them back home
Creating a file
Created on desktop
Make a directory
Move a directory
Remove a directory
Deleting everything inside a directory
Checking on Manual
Use Man
Use man to try to troubleshoot everything
Linux commands - 2
Reviewed by ohhhvictor
on
July 27, 2018
Rating:

No comments: