Skip to content
  • Linux
    • Shell
    • Applications
    • Raspberry Pi
    • Tips
    • Unix
  • Distros
    • Ubuntu
    • Centos
    • Debian
    • Fedora
  • Programming
    • Javascript
    • Perl
    • PHP
    • Python
    • Databases
  • Networking
  • Linux
    • Shell
    • Applications
    • Raspberry Pi
    • Tips
    • Unix
  • Distros
    • Ubuntu
    • Centos
    • Debian
    • Fedora
  • Programming
    • Javascript
    • Perl
    • PHP
    • Python
    • Databases
  • Networking

Welcome to LinuxScrew

A site for Linux lovers worldwide. For newbies, system engineers, administrators, and everybody in between. We cover all things Linux, plus various programming languages, including Python, Javascript, and PHP.

View our featured tutorials and projects in the slider below or scroll down to see all recent articles.

Getting the Absolute (Full) and Relative Path In Linux

  • Tips
  • May 3, 2021April 26, 2021
  • 3 min read
  •  Brad Morton

This article explains absolute paths and how they differ from relative paths, getting them, and how symbolic links are handled. FileSystem Paths A path is the location of a file in a file system. It’s the directions to the file in the folder it is located. A path… Read More »Getting the Absolute (Full) and Relative Path In Linux

Redirect stdin, stdout, stderr in Linux/Bash, With Examples

  • Shell
  • May 2, 2021April 26, 2021
  • 4 min read
  •  Brad Morton

The Linux/Bash shell has three data streams that you can tap into when executing commands – stdin, stdout, and stderr. Here’s how to use them. stdin, stdout, stderr allow for the display of text in the console, and the data being output each stream can be directed into other programs. These… Read More »Redirect stdin, stdout, stderr in Linux/Bash, With Examples

Remove a User From the Linux Command Line/Shell – How to Do It

  • Tips
  • May 2, 2021April 26, 2021
  • 3 min read
  •  Brad Morton

Here’s a short and sharp article on how to remove a user from a Linux system. These examples will work on the majority of Linux distributions. The userdel Command The userdel command can be run from the Linux shell to remove a user. Here’s the syntax: userdel OPTIONS USERNAME… Read More »Remove a User From the Linux Command Line/Shell – How to Do It

Why You Should Use Linux in 2021

  • Linux
  • May 1, 2021April 26, 2021
  • 5 min read
  •  Brad Morton

Here’s a bunch of reasons to try out (or continue using) Linux in 2021. Lots has changed on the Linux front in the last decade – here’s why you should give Linux a go. I’ve been using Linux on desktop computers since the early 2000s… Read More »Why You Should Use Linux in 2021

Calculating Absolute Values in Python, With Examples

  • Python
  • April 29, 2021April 26, 2021
  • 2 min read
  •  Brad Morton

In this article, you’ll learn about absolute values – what they are, how they’re used, and how to use the Python abs() function to calculate them. What is the Absolute Value of a Number? The absolute value of a number is that number’s value without any regard to its sign.… Read More »Calculating Absolute Values in Python, With Examples

Concatenate Strings in Bash/Shell Scripts, With Examples

  • Shell
  • April 29, 2021April 26, 2021
  • 2 min read
  •  Brad Morton

Here’s a short article on concatenating (merging) strings in Bash – the right way. Examples included. There are various ways two or more strings could be joined in a shell script. Various programs will accept strings and return them merged/concatenated – but using the side-effect… Read More »Concatenate Strings in Bash/Shell Scripts, With Examples

Command Line Arguments in Python Scripts, With Examples

  • Python
  • April 28, 2021April 26, 2021
  • 4 min read
  •  Brad Morton

This article will show you simple methods to pass command line arguments to your Python scripts, with some examples. Passing arguments to your script makes it easy to build multi-use scripts that can work on different inputs. This is much easier than re-editing your code… Read More »Command Line Arguments in Python Scripts, With Examples

PHP include – How to Use It, With Examples

  • PHP
  • April 28, 2021April 26, 2021
  • 3 min read
  •  Brad Morton

The PHP include expression allows you to import code from another file and import code from external PHP libraries. Here’s how to use it, with examples. PHP include will execute and import PHP code from another file or library.  It allows you to re-use code and… Read More »PHP include – How to Use It, With Examples

JavaScript Callback Functions How-To, With Examples

  • Javascript
  • April 27, 2021April 26, 2021
  • 4 min read
  •  Brad Morton

This article will explain callback functions in JavaScript – what they are, why they’re used, and how to use them. What is a Callback in the JavaScript Programming Language? A callback function is a function that is passed as a parameter to another function to be… Read More »JavaScript Callback Functions How-To, With Examples

Math/Arithmetic in Bash/Shell Scripts, With Examples

  • Shell
  • April 27, 2021April 26, 2021
  • 3 min read
  •  Brad Morton

Math is easy, Bash scripting is easy, so performing math/arithmetic in Bash/Shell scripts should be easy too. It is. Here’s how to do it. Working with Integers Bash’s built-in arithmetic can only handle integer (whole number) values. If you attempt to declare a variable with a non-integer… Read More »Math/Arithmetic in Bash/Shell Scripts, With Examples

  • 1
  • 2
  • 3
  • …
  • 53
  • Next »
  • About
  • Contribute
  • Advertise
  • RSS Feed
  • Privacy Policy
  • Contact

© 2007-2020 linuxscrew.com

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Cookie settingsACCEPT
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled

Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.

Non-necessary

Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.

SAVE & ACCEPT