TOP Linux Command lines for new comers
On this short article we’re going to see and discover some of the top ought to used linux commands which can help of all time.
Linux is the great of loose and feels powerful as it has the the ability to govern and trade clearly the whole lot from the command line.
I have a rule of mine which I inform everybody who asks me about how i’m so fast with the terminal. The guideline is relevant if you’re a amateur otherwise you’re an expert and is quite simple to put into effect. It is going as follows:
The pwd command
pwd command is used to check and view the current and present working directory.
pwd
Example
/home/basicyum/admin
The grep command
Grep command is used to look a string or word in a file.
It searches for given arguments by using users and go back the matching strains.
grep word1 basicyum.txt
In this command i searched for a “word1” in the basicyum.txt file In output, matching line returned
The Shutdown /Restart Command
This command is to tell your machine to shutdown or restart.
sudo shutdown now
output will have the system immediately.
Or
sudo shutdown +21
output will have the system shutdown in 21 mints.
Or
sudo shutdown 21:00
output will have the system shutdown at 21:00 o’clock.
Or
sudo shutdown -r
To just reboot/restart the system, add the -r option.
Broadcast or send a shutdown message to everyone online in the system
If you are in a multi-user environment and there are several users logged on the system, you can send them a custom broadcast message with the shutdown command.
sudo shutdown 16:00 “systems will be shutdown for upgrade, please save your work”
Cancel a scheduled shutdown
sudo shutdown -c
sudo shutdown -c “planned shutdown has been cancelled”
The grep command
Grep command is used to look a string or word in a file.
It searches for given arguments by using users and go back the matching strains.
grep word1 basicyum.txt
In this command i searched for a “word1” in the basicyum.txt file In output, matching line returned
the wget command
Wget is used to download files from a downloadable url
To download the files just mention url from where you want to download the files
wget url