While not a very well known Linux command, ac can provide very useful stats on user login time. In its simplest form, it will show you how much time users have spent on the system in the time period covered by the wtmp file. All you have to type is “ac” to get a figure… Continue reading Looking At User Login Time With The Ac Command | Network World
Category: Linux
Bash: A Primer For More Effective Use Of The Linux Bash Shell | Network World
Bash is not just one of the most popular shells on Linux systems, it actually predates Linux by a couple of years. An acronym for the “GNU Bourne-Again Shell”, bash not only provides a comfortable and flexible command line, it delivers a large suite of scripting tools—if/then commands, case statements, functions, etc.—that allow users to… Continue reading Bash: A Primer For More Effective Use Of The Linux Bash Shell | Network World
Counting Individual Characters On Linux | Network World
Determining how many characters are in a file is easy on the Linux command line: use the ls -l command. On the other hand, if you want to get a count of how many times each character appears in your file, you’re going to need a considerably more complicated command or a script. This post… Continue reading Counting Individual Characters On Linux | Network World
Finding And Fixing Typos On Linux | Network World
If you want to check a text file for typos, Linux can help. It has a couple of tools and a number of commands that can point out the errors including aspell and enchant, and I’ll share a script that I put together recently that looks for typos using the system’s words file. Using aspell… Continue reading Finding And Fixing Typos On Linux | Network World
Using Wikipedia From The Linux Command Line | Network World
If you are sitting in front of a Linux system, you can always pop open a browser and query topics of interest on Wikipedia. On the other hand, if you’re logged on through a terminal emulator like PuTTY or you just prefer using the command line, there is another option: wikit. Wikit is a tool… Continue reading Using Wikipedia From The Linux Command Line | Network World
How To Find Files On Linux And Make It Easy To Find Them Again | Network World
The cd command makes it easy to switch to another directory on Liniux, but only if you know where you’re heading. In this post, I discuss a couple of tricks for moving between known locations and provide a script for finding and “remembering” files or locations that you might want to reuse. One of the… Continue reading How To Find Files On Linux And Make It Easy To Find Them Again | Network World
The Simplicity And Complexity Of Using Quotes On Linux | Network World
There are only a few special characters involved in working with character strings on the command line or in a script on Linux: the single quote, the double quote and the backslash. But the rules aren’t as obvious as one might think. In this post, we’ll look at the easy and the somewhat tricky uses… Continue reading The Simplicity And Complexity Of Using Quotes On Linux | Network World
Using The Watch Command On Linux | Network World
Watch is a command on Linux that will repeatedly run commands for you, and it offers some very useful options. One of its basic options is that you can tell watch how long to wait before running the specified command again. For example, if you run the command watch -n 10 date, the watch command will first clear the screen… Continue reading Using The Watch Command On Linux | Network World
Using Functions In Bash To Selectively Run A Group Of Linux Commands | Network World
Using a function in bash allows you to create something in Linux that works as if it were a script within a script. Whenever the data being processed matches a set of conditions, your script can call a function that does further processing. The format of a function is very straightforward. The syntax looks like… Continue reading Using Functions In Bash To Selectively Run A Group Of Linux Commands | Network World
Using Bash Options To Change The Behavior Of Scripts | Network World
Bash provides a large number of options that can be used to control the behavior of bash scripts. This post examines some of the more useful ones and explains how to display which options are in use and which are not. Exiting when an error occurs If you want a bash script to exit soon… Continue reading Using Bash Options To Change The Behavior Of Scripts | Network World