Learn how to use a host of Linux commands in these 2-minute video tutorials from Sandra Henry-Stocker, author of the Unix as a Second Language blog.
In this Linux tip, we're going to take a look at the shuf command.
In this Linux tip, we’ll take a look at the chmod command for changing permissions on a Linux file.
In this Linux tip, we’ll take a look at the apropos command and how it can help you identify commands that you want to use. The meaning of the word apropos is “fitting and to the point”. When you use this command on the Linux command line, you can expect it to generate a list of commands that fit what you’re asking about.
In this Linux tip, we’re going to examine the shred command – a command that allows you to overwrite the content of a file with randomized data so that it is no longer readable and basically impossible to recover.
In this Linux tip, we’re going to look at directories on Linux – basically folders that are set up to house related files. Whenever you use a command like “ls dirname” for a directory, you will see a list of the files it contains.
In this Linux tip, we’re going to examine some commands for generating reports on who is logging into a Linux server. The data for login activity is stored in the /var/log/wtmp file.
In this Linux tip, we’re going to look at the cal (calendar) command. This command allows you to display a calendar for a month or even for a year. Using a command like this, you display a calendar for the current month with the today highlighted.
In this Linux tip, we’re going to take a quick look at the /etc/shadow file on Linux systems. It contains a lot of useful information pertaining to user accounts – and is a file that can only be viewed or changed with root or sudo access.
In this Linux tip, we’ll look at how you can “source” files on the Linux command line. “Sourcing” means reading the file and running the commands that it contains – even if the file isn’t set up with execute permissions. There are two ways to do this. One involves using the source command as in the command “source myfile”. The second way is to replace the word “source” with a dot as in “. myfile”. The results will be the same.
In this Linux tip, we’re going to look at timestamps used on Linux systems. There are actually three of them and they represent the date and time that the file was last accessed, the time it was last modified and the time it was last changed. Modified and changed may suggest the same thing but “modified” implies content changes and “changed” will capture other changes – like permissions.
In this Linux tip, we take a look at the who command – a command that tells you who is logged into the system. If you’re working on a Linux server, you might see that a number of people are logged in. The who command also tells you where the users are logged in from.
In this Linux tip, we’re going to take a look at epoch time – the way Unix and Linux systems store dates and times. Unix and Linux systems don’t store dates and times in a way that includes months, days and years in the way that you see them displayed on the system. Instead, they are stored as the number of seconds since the beginning of 1970. While this method of recording dates and times may seem odd, it requires little storage space and is consistently interpreted.
In this Linux tip, we’re going to look at the –help option that is available with most Linux commands. Type a command name followed by the argument --help and you will get some information on the command and its options.
This Linux tip explains how to locate files based on several different criteria.
In this Linux tip, we take a look at long file listings – using the ls -l command to examine the provided details.
In this Linux tip, we’re going to look at the easiest way to empty a file of its contents while not deleting the file. All you have to do is point a greater-than sign at a file and its contents are removed.
In this Linux tip, we’re going to look at if-then-else and if-then-elsif commands. Both are frequently used in bash scripts to make running a series of commands much easier.
In this Linux tip, we’re going to look at case statements – commands that are used in bash scripting to run shell commands depending on the value of some variable or command output.
In this Linux tip, we’re going to look at how the greater than symbols work. Both allow you to save the output of Linux commands to files, but they’re not the same.
In this Linux tip, we’ll look at the touch command. It’s a command that can be used to create an empty file or update the time stamp on an existing file.
In this Linux tip, we’ll look at the whoami command. It’s a very simple command that displays your username.
In this video transcript, Sandra Henry-Stocker discusses how to calculate factorials on a Linux system. She explains that factorials are the multiplication of numbers starting with a specified number and decreasing incrementally until reaching 1. To calculate factorials on Linux, you can use commands like "seq" and "bc." The "seq" command is used to generate a list of sequential numbers, and the "bc" command is used to perform the factorial calculations.
In this episode, Sandra Henry-Stocker, author of the "Unix as a Second Language" blog on NetworkWorld, explores the use of the "nohup" (no hangup) command in Linux.
In this episode, Sandra Henry-Stocker, the author of the "Unix as a Second Language" blog on NetworkWorld, introduces various ways to use the Linux date command. She demonstrates how to use the "date" command to display the current day of the week, date, time, and time zone.
In this Linux tip, we’re going to look at several ways to increment and decrement numeric variables in bash.
In this Linux tip, we’re going to look at a way that you can view every Nth line in a text file – whether every other line, every third line, every eleventh line or whatever you want to see.
In this Linux tip, we’re going to look at the comm command – a Linux command that provides a report on the lines that are common in two text files along with those that only exist in one file or the other.
In this Linux tip, we’re going to look at how you can get your command history to omit commands when you enter them more than once in a row.
In this Linux tip, we’re going to look at using the more command to view text files a selected number of lines at a time.
In this Linux tip, we’re going to look at the greater than and greater than x2 operators and how they work. The greater than operator will take the output of the command preceding it and put it into the file that follows it.
In this Linux tip, we’re going to look at setting up sudo privileges for users on Fedora. The key is to make them members of the “wheel” group.
In this Linux tip we will learn how to encrypt using Vim
In this Linux tip, we will look at how to move around on the Linux command line. There may be some tricks that you don’t know.
In this video, we're going to take a look at how you can search for commands in your command history -- in reverse order – and then rerun one.
In this video, we're going to take a look at the grep command and some of the things you can do with it.
In this Linux tip, we’re going to look at the netstat -s command that displays network statistics. The numbers reflect activity since the system’s last boot so some counts will change fairly frequently.
In this Linux tip, we’re going to look at the df -Th command. It provides details on your file systems but, unlike du -h, it adds the file system type – a good thing to take a look at from time to time and understand.
In this Linux tip, we’re going to look at the fortune command. Yes, fortune. It’s a command that will tell you your fortune though, I have to admit, it’s entirely random.
In this Linux tip, we’re going to look at the echo command and several ways you can use it. First, on the command line, you can enter the echo command followed by a string to display some text. You can even include variables and commands.
In this Linux tip, we’re going to look at a mkdir command that will create a complex directory structure in one step.
In this Linux tip, we’re going to look at the zdiff command. It’s a command that allows you to view the differences between 2 gzipped files – differences in the content that was compressed.
In this Linux tip, we’re going to look at the zipcloak command that you can use to encrypt a zip file so that it is password-protected.
In this Linux tip, we’re going to look the tr command (translate) that is used to replace or remove characters in strings or files.
In this Linux tip, we’re going to look at the whatis command. It’s a helpful command that will give you a one-line description of any command that you ask about.
In this Linux tip, we’re going to look at a bash option that will cause a script to exit any time it encounters an error. It’s called “errexit."
In this Linux tip, we’re going to examine bash's continue command. It is a bash built-in and provides a way to stop executing the commands in a loop depending on some condition.
In this Linux tip, we’re going to examine bash’s break command. It is a bash built-in and provides a way to break out of a loop prematurely.
In this Linux tip, we’ll explore how to use single and double quotes on the Linux command line or in scripts.
In this Linux tip, we’ll explore some ways you can check the status of files using the if command.
In this Linux tip, we’re going to look into several uses of the cd command. While it’s routinely used to move into a different directory, there are some more unusual ways to use this command.
Sponsored Links