How-To Geek on MSN
A gentle introduction to Bash functions
You will most often use Bash functions to make your shell life easier; instead of typing out complex command pipelines, create a function and inject arguments. You'd place these in your bashrc file, ...
This article will introduce the concept of playing a file line by line in Linux with the help of examples and best user tips. We'll walk you through some of the most common errors made when reading a ...
If you're writing a Bash script, you will invariably need to pass values to it—aka arguments or positional parameters. Bash's approach is a little clunky, but it works. Examples are the easiest way to ...
Bash is fairly easy to install, but using it is another matter. Here are some commands to help IT pros dip their toes in Bash. I have written quite a bit lately about the Bash shell that exists within ...
Linux has over 1,000 commands on a basic service. When you migrate to the desktop, that number grows. For example, in /usr/bin on Pop!_OS there are 1,615 commands, and in /usr/sbin, there are 609.
The way the Linux file system is laid out makes perfect sense. I've been using Linux for so many years that I can't imagine another file system making more sense. When I consider how the Windows file ...
The trap statement in bash causes your script to execute one or more commands when a signal is received. One of the useful things you can use this for is to clean up temporary files when your script ...
Linux systems provide a very easy-to-use command for breaking files into pieces. This is something that you might need to do prior to uploading your files to some storage site that limits file sizes ...
You can use the stat command to view dates and times associated with Linux files, and the date command can do some handy conversions if you’d like to display the current time in the epoch format.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results