×


Blog


Methods to Log Out of Debian 10 ?

This article will guide you on how you can log out from your Debian 10 system. Here, you will learn the different methods of logging out of a #Debian system. 

exit command in #linux is used to exit the shell where it is currently running. 

It takes one more parameter as [N] and exits the shell with a return of status N. 

If n is not provided, then it simply returns the status of last #command that is executed. Syntax: exit [n].

pkill is a command-line utility that sends signals to the processes of a running program based on given criteria. 

The processes can be specified by their full or partial names, a user running the process, or other attributes.


Methods to Log Out of Linux Mint 20 ?

This article will guide you on methods to logout from the Linux #Mint. Based on your convenience, you can use either the keyboard shortcut or the system menu to logout from your session. When you use a terminal or if you log in to an #Ubuntu system via #SSH, you open a shell session. If you want to logout from your session, you simply exit the #shell. This is why the exit command is equivalent to log out command in Linux.

To switch users in #Linux:

The su command lets you switch the current user to any other user. 

If you need to run a command as a different (non-root) user, use the –l [username] option to specify the user account. 

Additionally, su can also be used to change to a different shell interpreter on a go.


Methods to Log out of Ubuntu 20.04 LTS ?

This article will guide you on different methods to log out of your #Ubuntu 20.04 system very conveniently. By logging out of a current user session, we essentially attempt to stop all the running #applications. 

It means that when we will log into the same user account again, we will have to start everything from scratch.

Steps to Log Out from Ubuntu #Linux:

1. To log out from Ubuntu desktop #session, go to the top right corner and click to bring the system tray. 

2. You should see Power Off / Log Out option. 

3. Click on it and it will show the Log Out option. 

4. When you click on the Log Out button, it will open a dialogue box and ask for your conformation.

You can Use #logout to log out of the #terminal. Or alternatively we can use ctrl + d to log out of the terminal session.


Methods to log out of CentOS 8 ?

This article will guide you on different methods to log out of the #CentOS 8 #Linux system. Therefore, If you want to close the current user session then, Logging out of the system is the best choice. 

The main difference between these tools is that kill terminates processes based on Process ID number (PID), while the killall and pkill commands terminate running processes based on their names and other attributes.

To exit CentOS 7:

i. Simply use 'Ctrl-C' to kill terminal commands in linux. 

ii. Ctrl-D should be used to terminate nl correctly. 

iii. Ctrl-C is just a general way to kill #applications.


NFS Client and Server - Step by step process to configure on Debian 10 Linux System

This article will guide you on how you can setup NFS server and client in Debian 10 system. Also, you will learn steps to install the NFS server and client, configure NFS shared directories, and mount/unmount the NFS shares on the client system.

Configuring a system to share files and directories using NFS is straightforward. 

NFS uses port 2049. NFSv3 and NFSv2 use the portmapper service on TCP or UDP port 111.

Every filesystem being exported to remote users via NFS, as well as the access rights relating to those filesystems, is located in the /etc/exports file.

To check #NFS mount #Linux:

1. Use showmount to show NFS shares.

2. Use exportfs to show NFS shares.

3. Use master export file /var/lib/nfs/etab to show NFS shares.

4. Use mount to list NFS mount points.

5. Use nfsstat to list NFS mount points.

6. Use /proc/mounts to list NFS mount points.



How to uninstall programs from Linux Mint ?

This article will guide you on methods to remove or #uninstall a program in #Linux #Mint 20. 

To uninstall a program, use the "apt-get" command, which is the general command for installing programs and manipulating installed programs.

If you want to remove a package, use the apt in the format; sudo apt remove [package name]. If you want to remove a package without confirming add –y between apt and remove words.

To uninstall an RPM package:

1. Execute the following command to discover the name of the installed package: rpm -qa | grep Micro_Focus. This returns PackageName , the #RPM name of your Micro Focus product which is used to identify the install package.

2. Execute the following command to uninstall the product: rpm -e [ PackageName ]


To clean up broken #packages in #Ubuntu:

i. Find your package in /var/lib/dpkg/info , for example using: ls -l /var/lib/dpkg/info | grep <package>

ii. Move the package folder to another location.

iii. Run the following command: sudo dpkg --remove --force-remove-reinstreq <package>