First step toward becoming a Linux Wizard.
Harish
Posted on May 15, 2022
To become a Linux Wizard you must conquer Command Line Interface,
Part 1
Watch Video
Start with, what is a CLI?
- It is a user interface, which doesn't have pretty graphics.
- We'll use the commands to mess around.
Let's say if you want to open a folder on your PC, we'll be using commands for that, don't freak out, its easy than it seems just bear with me,
By the way, CLI uses BASH as a programming language.
CLI
- here, haris is PC admin name
- cosmos is name of my PC
- ~ is representing Home directory
- $ means we're in the system shell, and ready to type commands
Understand Directories and their Path
- All folders are like Tree Hierarchy, starting from Root Directory,
Basic Commands
-
pwd
present working directory -
ls
check the content of the directory -
cd
change directory -
cd..
change directory to previous directory -
cd../..
change directory to previous two times -
cd~
change directory to Home Directory - flags are arguments/options
-
ls -a
to list all the hidden files -
ls -l
show detailed versions of files -
ls -la
show detailed version of all hidden files -
clear
clear the terminal (ctrl+l) -
.
current directory -
..
parent Directory -
~
home Directory -
-
previous Directory -
mkdir
make a directory -
touch
Create a new file -
file
give info about file -
gedit
edit file -
cat
view content of a file, concatenate files -
history
displays history of commands that were executed -
uparrow
display previous commands -
ctrl + r
reverse search -
ctrl + c
exit -
Autocomplete - type first letter of the directory then press
tab
-
cp
copy files -
mv
move files -
rm
remove files -
mkdir -p
make a directory in the subdirectory -
rm -r
remove recursively -
rm -rv
remove recursively and display removed directory -
find ~ -name
find a file in home directory
or find it only with file type or only with file name
-
find ~ -type d -name
find folder -
man
find the manual of any command -
whatis
tells about command
Now you are ready to become a Linux Wizard,
See you in Part 2
๐ ๐ช ๐
๐ฉ
Harish
Posted on May 15, 2022
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
undefined Anytime i install linux on a new machine or start fresh, this is where i will regain all of my cli tools.
November 28, 2024
devops Mastering Packaging and devlopment: Packaging and Running Apps on Gunicorn.
November 29, 2024
linux Steps to Use .NET on the Forlinx OKMX6UL Series Development Board (Linux4.1.15)
November 29, 2024
operatingsystem Understanding the Core Components of an Operating System and How They Work
November 29, 2024