Linux Basic

 


A command line is a text-based interface, which can be used to input instructions to a computer system. The Linux command line is provided by a program called the shell. Over the long history of UNIX-like systems, many shells have been developed. The default shell for users in Red Hat Enterprise Linux is the GN U Bourne-Again Shell (bash). Bash is an improved version of one of the most successful shells used on UNIX-like systems, the Bourne Shell (sh).

Another way to access a shell is from a virtual console. A Linux machine's physical console supports multiple virtual consoles which act like separate terminals. Each virtual console supports an independent login session.

If the graphical environment is available, it will run on the first virtual console in Red Hat Enterprise Linux 7. Five additional text login prompts are available on consoles two through six (or one through five if the graphical environment is turned off). With a graphical environment running, access a text login prompt on a virtual console by holding Ctrl +Alt and pressing a function key (F2 through F6). Press Ctrl+Alt+F1 to return to the first virtual console and the graphical desktop.












To display the current time and date on your system, use the timedatectl command from the command line as follows:
Here I am seeing that, my time is ok. But if your time is not synchronized with NTP server, you have to start the service named "chronyd". 

NTP = Network Time Protocol     Port Number = 123

First, you have to see, your service is active or not by bellow command 


If your service is not active or disabled, you should active (systemctl start chroynd) / enabled (systemctl enable chroynd) the service by commands


If your timezone is worng , then you have to set your timezone. Note: At first you can see your timezone from "timedatectl" command. 


Lets say, youe time zone is not correct. Now you will set the correct timezone dear?
No worry.I am helping you. Smile😀😀😀

First, you have to know your timezone. Right? We all know our time zone is -- Dhaka related word. Right? So you can get easily our timezone name from the timezone list by below command. 


Now, we know our timezone is "Asia/Dhaka". 
Now , we will set our timezone.
[root@itbd ~]# timedatectl set-timezone "Asia/Dhaka"


I hope, Now you are happy my dear. Please smile again.😀😀😀😀
Your smile is vey nice. Please I want to see your smile face all time. May Allah keep your smile after your death. 


What is RTC time?
real time clock is basically just like a watch - it runs on a battery and keeps time for you even when there is a power outage! Using an RTC, you can keep track of long timelines, even if you reprogram your microcontroller or disconnect it from USB or a power plug.

You can set date & time manually also
timedatectl set-time '2020-11-18  16:14:50'










Comments

Popular posts from this blog

Some Questions for MTCNA Exam

ডিপ্লোমা লেভেল এর ইন্ডাস্ট্রিয়াল এটাচমেন্ট এ আসার পূর্বে একটু ভেবে আসার অনুরোধ রইলো

Basic Router & Switch IOS commands