-E If set, the ERR trap is inherited by shell functions. -H Enable ! style history substitution. This flag is on by default when the shell is interactive. -P If set, do not follow symbolic links when executing commands such as cd which change the current directory. -T If set, the DEBUG trap is inherited by shell functions.

In our case we have set a priority 2 for /usr/bin/python3.4 and as a result the /usr/bin/python3.4 was set as default python version automatically by update-alternatives command. # python --version Python 3.4.2 If set, the return value of a pipeline is the value of the last (rightmost) command to exit with a non-zero status, or zero if all commands in the pipeline exit successfully. This option is disabled by default. posix: Change the behavior of bash where the default operation differs from the POSIX standard to match the standard (posix mode File ownership and groups for files are fundamental to the Linux operating system. Every file in Linux is managed by a specific user and a specific group. Figure Out Who Owns the File, Then Use Either chown or chgrp Display ownership and group information using the following command: ls -l file.txt -rw-rw-r-- 1 root www-data […] set -x enables a mode of the shell where all executed commands are printed to the terminal. In your case it's clearly used for debugging, which is a typical use case for set -x: printing every command as it is executed may help you to visualize the control flow of the script if it is not functioning as expected. set +x disables it.

Linux users can use date command to print or set the system date and time. Systemd based Linux users can use timedatectl to control the system time and date. You can also set new timzone using this mini-howto .

Change DNS settings on Linux. Last updated on: 2019-07-22; Authored by: Jered Heeschen; If you find that your server's Domain Name Server (DNS) settings are misconfigured or you prefer to use your own, this article describes how to change your Linux® server's DNS settings. This trick should work on all Debian-based Linux distros, including Ubuntu. To get started, type ifconfig at the terminal prompt, and then hit Enter. This command lists all network interfaces on the system, so take note of the name of the interface for which you want to change the IP address. This tutorial covers the steps necessary to set or change the time zone in Linux. Checking the Current Time Zone # timedatectl is a command-line utility that allows you to view and change the system's time and date. It is available on all modern systemd-based Linux systems.

Modern Linux systems have three different types of hostnames configured. To minimize confusion, I list them here and provide basic information on each as well as a personal best practice: Transient hostname: How the network views your system. Static hostname: Set by the kernel. Pretty hostname: The user-defined hostname.

This tutorial covers the steps necessary to set or change the time zone in Linux. Checking the Current Time Zone # timedatectl is a command-line utility that allows you to view and change the system's time and date. It is available on all modern systemd-based Linux systems. Alright so far, we have set our method and the listener IP address. In this options listed pre-defined web phising templates as i mentioned above. Because we aimed Google account page, so we choose number 2. Google. Hit ENTER. the. Now, SET starts my Kali Linux Webserver on port 80, with the fake Google account login page. Our setup is done. Linux Mint is a great 'default' distro for new Linux users, as it comes with a lot of the software you'll need when switching from Mac or Windows, such as LibreOffice, the favored Modern Linux systems have three different types of hostnames configured. To minimize confusion, I list them here and provide basic information on each as well as a personal best practice: Transient hostname: How the network views your system. Static hostname: Set by the kernel. Pretty hostname: The user-defined hostname.