How to add a new user on Linux and some other useful tips.

Adding a new user on Linux is very easy, this can be done with the groupadd and useradd commands. I am adding a new user group to Linux and then adding the new user to it. Firstly, add the new user group. jason@jason-Lenovo-H50-55:~$ sudo groupadd -g 1001 cudauserjason@jason-Lenovo-H50-55:~$ sudo groupadd -g 1001 cudauser Then we … Read more

How to create a new user on Linux with the command line.

This simple command-line will create a new user on Linux named test5. ┌──[[email protected]]─[~] └──╼ ╼ $ sudo useradd test5 -m -K PASS_MAX_DAYS=5 -K PASS_WARN_AGE=3 -K LOGIN_RETRIES=1┌──[[email protected]]─[~] └──╼ ╼ $ sudo useradd test5 -m -K PASS_MAX_DAYS=5 -K PASS_WARN_AGE=3 -K LOGIN_RETRIES=1 Then set a password for the new user. ┌──[[email protected]]─[~] └──╼ ╼ $ sudo passwd test5 New … Read more

How to add a directory in a mounted filesystem as a directory accessible by your user.

How to mount a partition on Linux and make your old home directory accessible to your user To add a directory in a mounted drive as a folder accessible by a normal user, use this command to change the ownership of all files and directories to that of your current user. [root@darkstar Videos]# chown -R … Read more

Interesting and useful commands available using the BASH shell on Linux.

This is an interesting command to view your command history when you are using Bash. ┌──[[email protected]]─[~] └──╼ ╼ $ hash hits command 1 /usr/bin/gethostip 1 /usr/bin/sudo┌──[[email protected]]─[~] └──╼ ╼ $ hash hits command 1 /usr/bin/gethostip 1 /usr/bin/sudo This command is a Bash shell built-in command. If you are using the tcsh or zsh shells; this command … Read more

How to get information about a user on Linux with the command line.

It is easy to get comprehensive information about a user on Linux by using the command line. I will show you how to see password expiry information and other details. This example shows the use of the chage command to retrieve password expiry information. 4.4 Mon Jan 13 jason@Yog-Sothoth 0: $ sudo chage -l jason … Read more

Using symbolic links on a Linux system and other useful Linux commands for the user.

What is the difference between a hard link and a symbolic link? The output below shows the process of creating firstly a hard link and then a symbolic link. The hard link appears exactly the same as the original file; but the symbolic link displays as a link from the symlink to the original file. … Read more

Get information about running services with systemd on Ubuntu 17.10.

This is an easy way to get information about running services on your Ubuntu machine. I am after user services, so I am using systemctl to get this information. This is very easy. Get information about a certain service. jason@kaio:~$ systemctl status –user pulseaudio ● pulseaudio.service – Sound Service Loaded: loaded (/usr/lib/systemd/user/pulseaudio.service; disabled; vendor preset: … Read more

Very useful Linux files and info to get you started.

Very useful information for a new Linux user Very comprehensive .bashrc file for your Linux system. http://securitronlinux.com/debian-testing/very-comprehensive-bashrc-file-for-your-linux-system/. How to generate a random password using the command line. http://securitronlinux.com/bejiitaswrath/how-to-generate-a-random-password-using-the-command-line/. UNIX & Linux PDF Ebooks. Many useful Linux and BSD E-Books available. learn all you can about Linux by reading these useful books. http://securitronlinux.com/nix-pdfs/. Setting defaults for … Read more

How to print information about Linux users with the shell.

To get information about Linux users with the shell, give these examples a go. Get a listing of all /home folders on Linux. jason@Yog-Sothoth:~/Documents$ sudo gawk -F: ‘{ print $6 }’ /etc/passwd | grep /home /home/syslog /home/jason /home/justin /home/danieljason@Yog-Sothoth:~/Documents$ sudo gawk -F: ‘{ print $6 }’ /etc/passwd | grep /home /home/syslog /home/jason /home/justin /home/daniel Count … Read more

Linux user groups in India. Takeup of Linux is very strong in this country.

Linux User Groups India There are many Linux user groups, (LUG) in India. They meetup and discuss various open-source software topics. This is a great way to meet other Linux users and learn from others. One large Linux User Group in India is the Indian Linux Users Group. http://linux-delhi.org/. Their website hosts many tips and … Read more