This post will help you with Working with Linux for Basic Operations & Logging in and out particularly how to interact with Linux Shell for basic operations, How to logging in and logging out with most essential commands.
If you are interested in learning, Request you to go through the below recommended tutorial.
DevOps Full Course Tutorial for Beginners - DevOps Free Training Online
Docker Full Course Tutorial for Beginners - Docker Free Training Online
Kubernetes Full Course Tutorial for Beginners - Kubernetes Free Training Online
Ansible Full Course Tutorial for Beginners - Ansible Free Training Online
Openstack Full Course Tutorial for Beginners - Openstack Free Training Online
The linux operating system can be used either in a terminal mode where you type commands or in a Windows Explorer style graphical user interface (GUI).Docker Full Course Tutorial for Beginners - Docker Free Training Online
Kubernetes Full Course Tutorial for Beginners - Kubernetes Free Training Online
Ansible Full Course Tutorial for Beginners - Ansible Free Training Online
Openstack Full Course Tutorial for Beginners - Openstack Free Training Online
Working with Linux for Basic Operations & Logging in and out
Logging in
Once you have completed your system install and booted your system, you should see a login prompt on your monitor. Therefore to log in, you have to type the name of a user or "root" for the login name and enter the appropriate password which was created during the installation.
Basic operation in Linux OS with commands
Remember a few things that apply to all Linux commands.
1. All Linux commands must always be entered in small case letters
2. There should be a space between the command, options and arguments (Command [options] [arguments]).
For example, shutdown -h now, where "Shutdown" is the command, "-h" is the option which is usually preceded by a single or double minus sign. Two or more options available with command can usually be combined, for example, the command "ls –l –a" is same as "ls –la".
3. If you make a typing mistake, press backspace to erase characters Don’t try back using arrow keys and then attempt deleting using the del key
4. To cancel the entire command before you press Enter, press ctrl+c Or backspace key
To learn more about the available options of each command, Use "man" program to get additional information of the command, for example, man ls.
Logging out
Use the command "logout" to exit a logged in session.
Shutting Down or Rebooting
The system is intended to be shutdown by the system administrator using the shutdown command in one of the forms shown below. Many systems are set up to capture the <CTRL><ALT><DEL> keystroke combination to issue the shutdown command through the init program. This will work on most systems if the root user is logged in.
Examples of using the shutdown command are shown below.
shutdown -h now
shutdown -r +10 "Rebooting in 10 minutes"
shutdown -r 13:00
The first command will shutdown and halt the system immediately. The second will reboot the system in 10 minutes and send the message to all users. The third command will shut the system down and do a reboot at 1:00 in the afternoon
Related Content on Linux might be useful to you to improve your Linux Skills.
How to Configure IP Address on Ubuntu using Netplan
How to Access Linux Server from Windows Remotely
Configure SSH Passwordless Login Authentication (SSH-keygen)
How to Create LVM Partition in Linux – LVM Tutorial
Install & Configure Samba Server on Linux (RHEL7 / CentOS7)
How to Access Linux Server from Windows Remotely
Configure SSH Passwordless Login Authentication (SSH-keygen)
How to Create LVM Partition in Linux – LVM Tutorial
Install & Configure Samba Server on Linux (RHEL7 / CentOS7)
0 Comments