1. Show/purge unused linux kernel images and modules:
dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d'
Read more »1. Show/purge unused linux kernel images and modules:
dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d'
Read more »Before, I have posted here a few basic Linux terminal commands that I think are essential for newbies to know. I've also shared some deadly ones that should be avoided at all costs.
Read more »If you use sudo to run commands as root, you've probably run into “permission denied” problems when only part of a pipeline or part of a command is running with root permissions.
Read more »1. Brag about how much free RAM you have on Linux:
free
2. Where is that application I just installed (all directories)
whereis [app]
3. Disk space usage
df -h
4. To make a playlist of the audio files in a folder
ls -R > playlist.m3u
Read more »Eight must-know Linux commands that will turn any Linux novice into an apparent command line guru. Go on. Impress your friends and family.
Read more »Since the 70’s, Vi is one of the programmer’s best friend. Nevermind you’re new to Vi or not, here’s a big list of 100 useful commands, organized by topic, which will make your coder life better.
Read more »In this context, a one-liner is a set of commands normally joined through a pipe (|). When joined by a pipe, the command on the left passes its output to the command on the right. Simple or complex, you can get useful results from a single line at the bash command prompt.
Read more »To use Linux nowadays, you don't have to touch the command line to get going. This may be true.
Read more »Today we have a simple tip of the shell. Are there applications or scripts that you use that require different environment variables, such as a different PATH or EDITOR? Then meet the env command. env allows you to run a program in a restricted environment with custom variables or so that no “dirty” variables are left around.
Read more »Today's post is yet another in a somewhat disjointed series of posts on "stuff you might not know and you might find interesting" regarding very common commands. And they don't get much more common than the "who" command.
Read more »One of the best features in Linux is the way you can control processes from the command line, so if you have an application that locks up your GUI, you can always SSH over from another machine and just kill the offending process.
Read more »The primary reason for writing this is to help new users develop an understanding of the Linux file system commands. Not all of them, just some of the more common ones. Let's look at what they do and why I would need to use them, what not to do, what each thing means and what it's for.
Read more »Perhaps your company is just switching to Linux, to save on costs. Or, maybe you’re starting University, and you have no idea how to get around the Linux Systems they’ve just installed. Or if you’re like me, you’re curious about how Linux works, and you have it installed at home.
Read more »Unix systems provide a number of commands to manage files and directories. Their strong point is the ability to use them in a rather simple manner against a group of files/directories meeting certain conditions. For example all the files satisfying specific criteria can be deleted or have their names changed en masse.
Read more »Yesterday’s post detailed how you can find files by their name, permissions, time, or other descriptors. But you probably also want to be able to find files based on what is inside them. Grep is a tool that picks up where find left off, and can search inside files (though cannot do the same things that find can).
Read more »