0% found this document useful (0 votes)
5 views2 pages

Shell Navigation Meeting 26 - 01 - 2023

The document provides a comprehensive overview of shell navigation commands and their functionalities in a terminal environment. Key commands include 'clear' for clearing the terminal, 'uname' for displaying operating system information, and 'touch' for creating files. Additional commands cover file and directory management, such as 'ls', 'cd', 'mv', 'cp', and 'rm', along with their specific usage examples.

Uploaded by

mhidrakhadija30
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views2 pages

Shell Navigation Meeting 26 - 01 - 2023

The document provides a comprehensive overview of shell navigation commands and their functionalities in a terminal environment. Key commands include 'clear' for clearing the terminal, 'uname' for displaying operating system information, and 'touch' for creating files. Additional commands cover file and directory management, such as 'ls', 'cd', 'mv', 'cp', and 'rm', along with their specific usage examples.

Uploaded by

mhidrakhadija30
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Youtube live 26/01/2023

============================
Deep Dive Into Shell Navigation

((Hardware) - (kernel/ operating system) - (shell) - (Applications/ Utilities)) Terminals


Printers Disks

clear: Clears all the previous commands in the terminal. You can also use the shortcut
ctrl + L

uname: Tells the environment you're working on or your operating system (ex:Linux)

uname -a: Gives further info about your op system.

touch: Command allows you to create a file.


ex: touch alx_session1 => a file named alx_session1 was created. you can create
multiple files ex: touch birthday_1 birthday_2 => now we created two files. I can create
any kind of files ex: touch index.htm, touch happy.txt, touch python.py.

ls: Lists the content of directories.

pwd: Locate your location. Or which directory you are currently in.

echo: Gives you back anything you give it. Ex input: echo "ALX is awesome."
Output: ALX is awesome.
it gives the input as it is back to me in the next line as an output.
if I want to write some content in a certain file we write the command; echo "the content I
want to type in a file called file_name" > file_name
if we want to see the content we wrote in the file file_name we use the command cat file,
it gives us what we wrote before which is the content I want to type in a file called
file_name.
if we want to write something else with the same command it rewrites it, so if we want to
add content to the previous content we use >> instead of >.

cat, less, more= Let you see the content of files.


mkdir: Creates a directory or folder. ex: mkdir directory

cd: To change the current directory or move to a certain directory ex: cd directory.

cd ..: To go to the directory's parent directory we use cd ...

cd - : Takes you back to the previous directory.

ls -r: It lists the content of the directory in a reversed order.

ls -a: Shows me the hidden files or directories inside the directory I am currently in.

file: Tells you the type of the file weither it is a text file or a directory.
Ex: file directory_name
Output: directory_name: directory

mv: Use it to rename a directory or a file. also you can use it to move files or directories
to another directory.

cp: Lets you copy the content of a certain directory to another directory or new
directory.

rm: To delete a certain file use rm name_of_file.py. if we want to delete all the files that
ends with .py we use the *, ex: rm *.py.

rm -r: To delete a directory. Be carefully careful when doing so because you can't undo
this action, if you deleted an important directory you can not bring it back.

rmdir: Removes only the empty directories. it will give you an error if the directory you
are trying to remove is not empty.

man: Gives you all the commands related to the main command, ex: man ls . it gives the
description of that command as well as all the related commands such as ls -r and ls -l.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy