Anna

How To Set Date and Time On Linux

How to Set Date and Time On Linux?

To set the manual date and time of the system, use the “date”, “timedatectl”, “hwclock”, and “ntpdate” commands and the “Date &Time” option via GUI.

Where are my sshd Logs in Linux

Where to Find sshd Logs in Linux?

The sshd Logs are stored in the “/var/log/auth.log” file. These log details can be displayed using the “grep”, “lastlog”, and the “journalctl” commands.

How to Color diff Output

How to Color diff Output?

To color diff output use the “diff –color” command for the newer version of “diff” and the “colordiff” command line tool for the older versions.

How to Add New Lines When Using echo

How to Add New Lines When Using echo?

To add new lines, use the “-e(backspace interpreter)” and “$(bash variable)” with the “echo” command. An “echo” tool can also be used multiple times to do this.

How to Install the Latest cURL on Linux

How to Install the Latest cURL on Linux?

In Linux and its distributions, the “curl” can be installed via default package managers i.e “apt” (Ubuntu/Debian), “yum” (CentOS/RHEL), and “dnf” (Fedora).

How To Generate A Strong Password In Linux

How to Generate a Strong Password in Linux?

To generate a strong password, use the “urandom”, “makepasswd”, “gpg”, “apg”, “pwgen”, and “openssl rand” commands. It can also be done using the “Perl” script.

How to Loop Over the Lines of a File

How to Loop Over the Lines of a File?

Use the “for” and “while” loops in the shell script to read the file content line by line. Both these loops provide simple syntax to perform this task easily.

How Do I Create a Permanent Bash Alias

How to Create a Permanent Bash Alias?

To create a permanent bash alias, edit the “~/.bashrc” file in Linux. After that, reload it using the “source ~/.bashrc” command to activate newly alias.

What is _declare_ in Bash

What is “declare” in Bash?

In Bash, the “declare” command sets the variable and functions alongside their attributes, “integer”, “string”, “array”, and “read-only” variables.

How to Restart the SSH Service

How to Restart the SSH Service?

Linux offers the “systemctl” and “service” commands to restart the “SSH” service instantly. It can also be restarted by accessing the “/etc/init.d” directory.

How To Change IP Address on Linux

How to Change IP Address on Linux?

To change an IP address, utilize the “ip”, “ifconfig”, and the “nmcli” command line tools or the “Network” window in the GUI method.

How to Make a for Loop in Command Line

How to Make a for Loop in Command Line?

In Linux, the “for” loop executes the block of statements repeatedly for every item in a list. It offers two types of syntax, i.e., “generalized” and “one line”.

Where is the Task Manager on Linux

Where is the Task Manager?

The Linux distributions that support the gnome-desktop environment come with the “System Monitor” tool as a task manager by default.

How to Install NodeJS on Linux

How to Install NodeJS on Linux?

On Linux and its major distros, “NodeJS” can be installed using “Default Repository”, “Node Source Repository”, and the “Node Version Manager”.

How to Restart Samba Server

How to Restart Samba Server?

Linux and its distributions offer the pre-installed “systemctl” and “service” command line tools to restart the “Samba” server instantly.

How do I Install Filezilla in Ubuntu

How to Install Filezilla in Ubuntu?

To install FileZilla on Ubuntu, use the command “sudo apt install filezilla” from the default or the PPA repository, or the GUI (Ubuntu Software Center) method.

How Do I Install Applications in Ubuntu

How to Install Applications in Ubuntu?

n Ubuntu, the user can install applications using “apt”, “snap”, “flatpak”, and “dpkg” package managers. It can also be done via “third-party” repositories.

How do I Check Which Shell I am Using

How to Check Which Shell I am Using?

In Linux, the “echo”, “ps”, “lsof”, and “readlink” commands become handy to check the shell. The “/etc/passwd” file also provides valid login shells.

How to install Git on Linux

How to Install Git on Ubuntu?

In Linux, the “git” tool can be easily installed through their default package manager “apt” for Ubuntu/Debian, “yum” for CentOS/RHEL, and “dnf” for fedora.

10 Quick Ways to Exit Vim Editor

10 Quick Ways to Exit Vim Editor

To exit the vim editor in Linux, use the “:q”, “:q!”, “:conf q”, “:wq”, and “:x” commands. The “:qa”, “qa!”, “wqa”, and “cq” are also used to perform this task.

Use ldd Command in Linux

How to Use ldd Command in Linux?

The “ldd” command stands for “List Down Dependencies”, which is used to display executable files or program-shared library dependencies.