Lập Trình Linux

Top 10 Most Useful Linux Commands




What are the top 10 most useful Linux commands? I spoke with my online community, and we came up with a list of ten commands we can’t live without. What’s your favorite Linux command? Comment below and let me know. I might make a video about it!

#linux #commandline

The Top 10 Most Useful Linux Commanders by Coding Commanders
10) find – Search for files throughout your directories

find Linux command configuration:
find [where to start searching from] [-options] [what to find]

Examples:
find /home/candy -name nurse.py
find /home/candy -name *.py
find /home/candy/websites -name gdscript*
find /home/candy -perm 666
find Pictures/ Downloads/ -name harley*

9) ping – Ping is used to send ICMP ECHO_REQUEST to network hosts.
ICMP stands for Internet Control Message Protocol and is used by network devices to send information about their communication with other IP addresses. An ECHO_REQUEST is sent to determine connectivity. You may want to test if a network is up and running or you may want to check network speed.

Example:
ping codingcommaders.com

By default, a request is sent every second. you can change the timing
using the interval option:

ping -i 0.25 codingcommanders.com

8) rsync -Rsync is a fast and versatile tool used to copy files locally
and transfer them to other servers. Rsync offers many options,
so the user controls the terms of each file transfer, and it comes standard with many Linux distributions.

You may use it to do a local backup:
rsync [OPTION…] [FILE/DIRECTORY] [DESTINATION]

There is a file called battle-back-story.odt in my
Documents directory and I want to put a copy in
my code_practice directory:

rsync /home/candy/Documents/battle-back-story.odt /home/candy/code_practice

Or to transfer a file to a virtual server
rsync [option] [FILE or DIRECTORY] [REMOTE_USER@REMOTE_HOST:DESTINATION]

*a is archive mode
– recursively copy the entire directory with files, permissions, ownership, group, modification time and symbolic links”:

rsync -a /home/candy/code_practice commander@192.168.1.68:/home/commander

Other comman rsync options include
-z (compress)
-q (quiet) Only shows error messages
–delete (deletes
-r (recursive)
–delete (delete extraneous files from destination)
–force (If dirs are not empty, force deletion)
If you would like me to do an entire video on rsync, please comment below.

7) ssh –
ssh allows you to log in and execute commands
on a remote server.
ssh [remote_user]@[remotehost]

You can log in by entering your passwords, or you can use ssh keys.

More on SSH at

For the last 6 commands, you will find more information at

6) ifconfig
5) rm
4) mkdir
3) man
2) cd
1) ls

Follow Coding Commanders on
Twitter @codingcommander
Facebook @codingcommanders
IG @codingcommanders
Mastodon
You can also see me live on Twitch: DaisyChainCosplay

Music:
Lost World by Darren-Curtis: Attribution 3.0 Unported (CC BY 3.0) Music provided by Free Vibes:

Music provided by No Copyright Music: Licensed under Creative Commons Attribution 4.0

Starry Star Trek-Inspired Music:

Sound Effects
Powerful Sound:
Typing Kaybren Reckland
woman thinking
Long Whoosh:
Gulping and drinking:
“Clap, Single, 10.wav” by InspectorJ (www.jshaw.co.uk) of Freesound.org
Drum Roll:
“Party Pack, Horn Coil 01, Long, 01.wav” by InspectorJ (www.jshaw.co.uk) of Freesound.org
“Pop, High, A (H1).wav” by InspectorJ (www.jshaw.co.uk) of Freesound.org
Whoosh sound
“Running, Snow, A.wav” by InspectorJ (www.jshaw.co.uk) of Freesound.org
Clock sound
blink

Nguồn: https://ftlinuxcourse.com

Xem thêm bài viết khác: https://ftlinuxcourse.com/lap-trinh-linux

Giải Trí
Trưởng thành rồi mới thấy cuộc đời chẳng bình yên như khi ở bên ba mẹ | Radio Gia đình
Tin HOT
🔴TIN NÓNG: Tước quân tịch Giám đốc CA tỉnh Đồng Nai Huỳnh Tiến Mạnh
Lập Trình Linux
Huong dan cai Linux, How to install CentOS
There are currently no comments.