Home » 2021

The Bash Profile and How to Use It

Bash Profile 1

If you’re frequently interacting with Linux via the Bash shell, you’ll eventually want to customize it a bit – perhaps adding your own shortcuts, or setting up the environment to your liking, or even just adding some decorative personalization. This is what the Bash profile is for. It’s stored in your home directory and can be edited to set things up just the way you want each time you log in. Editing your Bash Profile To edit your bash profile, open it with the nano text editor … Read more

Home » 2021

Python range Function – How to Use It [With Examples]

Python range Function

The Python range() function returns an immutable sequence of integers between a given start and endpoint, incrementing by a given amount. Python range Syntax Here’s the syntax for the Python range() function: range(start, stop, step) Note that: start is the integer to start incrementing from – it will be included in the range If it is not supplied, it will be assumed to be 0 stop is the integer to end the range at – it will NOT be included in the range – the range will end before the stop value If start and stop are the same, an empty … Read more

Home » 2021

How to Make a PHP Redirect to a Different Page [Quick & Easy]

How to Make a PHP Redirect

Being able to redirect the user to a different page in PHP can be useful if you’ve moved a page to a different location or want to send the user elsewhere – directing them to an access denied or error page instead of the page they were trying to access. This can be easily done using the PHP header() function. Using the PHP header() Function to Redirect to a Different Page To redirect the user to a different page, simply include the following PHP code: header(“Location: https://linuxscrew.com/”); … Read more

Categories PHP

Home » 2021

Find Command in Linux [With Useful Examples]

Find Command in Linux

The find command in the Linux shell allows you to search for files in the filesystem. It can find files by name, user permissions, and size. The find command can also perform actions on the files which are found. Find Command Syntax The syntax for the find command is as follows: find [OPTIONS] [PATH] [EXPRESSION] Where: [OPTIONS] are options from the below table to determine the find behavior [PATH] is the starting point for the search [EXPRESSION] defines the tests to find matching files and any action that should be taken … Read more

Home » 2021

How to Update Kali Linux [Quick Guide]

update Kali Linux

So you’ve followed our guide to Installing Kali Linux, and you want to make sure all of your software is up to date. Follow these instructions to make sure you’re on the latest version. Updating Kali Linux from the Terminal Check that the /etc/apt/sources.list file is populated: cat /etc/apt/sources.list You should see something like: deb http://http.kali.org/kali kali-rolling main contrib non-free deb-src http://http.kali.org/kali kali-rolling main contrib non-free If you don’t see the above, you may need to add those lines to the file. If everything looks good in … Read more

Home » 2021

How to Install Kali Linux [Easy Guide]

Install Kali Linux

Kali Linux is a Linux distribution built from the ground up for Penetration Testing and Security Auditing. This step-by-step tutorial explains how to install it quickly and easily. What does that mean? It means Kali Linux is for trying to break into (your own) networks and computers to check for vulnerabilities. It contains hundreds of tools for testing for security vulnerabilities and tools for computer forensics, reverse engineering, and security research. Kali Linux can be run from a CD or USB stick or installed like any other Linux distribution … Read more

Home » 2021

How to Install Anaconda (Python & R) on Ubuntu

Install Anaconda Ubuntu

We like Python. Anaconda is a popular distribution of Python and the R programming languages, which includes package management and deployment tools, with hundreds of packages pre-installed. Anaconda is aimed at data scientists and people working with machine learning, but it’s useful for anyone. It has a quick and easy install process for Ubuntu, so here’s how to get up and running! Download the Anaconda installer Anaconda has various additions, and we want the Open Source (free!) individual edition, available from: https://www.anaconda.com/products/individual Scroll down and … Read more

Home » 2021

How to Use The awk Command in Linux [With Examples]

awk command linux

This guide shows you how to use the awk command in Linux, with plenty of useful everyday examples. AWK is a tool and language for searching and manipulating text available for the Linux Operating System. The awk command and the associated scripting language search files for text defined by a pattern and perform a specific action on the text which matches the pattern. awk is a useful tool for extracting data and building reports from large text files or large numbers of text files – for example processing logs, or … Read more

Home » 2021

How to Install Webmin on Ubuntu 20.04

How to Install Webmin on Ubuntu

Webmin is a system configuration tool that can be run on Linux. This step-by-step tutorial explains how to install Webmin on Ubuntu 20.04. Webmin makes it easy for newbies (and veterans) to monitor and manage their Linux system and the services running on it in a graphical, browser-based interface that can be accessed locally or remotely. It’s a great tool for people getting started to manage users, web server configurations, file servers, and more. Webmin includes a bunch of modules for common software like Apache … Read more

Home » 2021

Don’t Install Yaourt on Arch Linux – use Yay instead!

install yay on arch

Yaourt (Yet AnOther User Repository Tool) is (was) a package manager for the Arch Linux distribution, which allowed for the installation of packages from the Arch User Repository (AUR). Don’t install Yaourt; it’s obsolete software. If you need a package manager for Arch Linux, install and use Yay instead! Yay is a package manager for Arch, which lets you install AUR packages. Why Yay? It’s actively developed and easy to install and use. Installing To install Yay for Arch Linux, run the following commands: sudo pacman -Syy sudo pacman -S –needed git base-devel git … Read more