Computer Tricks

Category archives for Computer Tricks

Type: ls | wc -l The output is an approximation of how many files are in the current directory.

You know about cookies … the little bits of data that your operating system, your browser, and the Military Industrial Complex conspire to leave on your hard drive for purposes of marketing and mass social control and stuff. Cookies are actually quite wonderful because they allow your interactions with the web to be smarter. But…

This is a continuation of a discussion of the role of the command line in both the functionality and the culture of the three main operating systems used today general purpose desktop computers: Linux, and the other two. Today’s toic: Underlying power.

This is the second part of a series of posts on the Power of the Command Line. (The first post was: The Command Line in Linux, Mac OSX and Windows) The lesson of today’s post is: Don’t be a chump, learn to love the command line!

This is the first in a series of posts on just what the title says: The command line. The main point will be this: Stop worrying about the command line.

Today’s Linux One-Liner

Try this: ps -eo user,pcpu,pid,cmd | sort -r -k2 | head -6 What the heck does that do?

How to be more keyboardy: Update

Being more keyboardy is good. The mouse is good, too. But if you can do more things with the keyboard, those things will usually happen faster and with less mucking around. Also, it is very, very cool to sit there and go “tap tap tap” and have stuff happen on the screen without the mouse.…

How to grep a PDF file (Linux)

OK, I’m going to do this without looking. It will be something like pdftotext foo | grep whatever, right? Let’s watch and see…. Well, close enough. Note that that was not being done on a Debian system. For Debian (like Ubuntu) you would use apt to install the tools. apt-get install poppler-utils

Linux tip: GUI ssh/ftp

ftp is for transferring files over networks, and ssh is for doing that plus more. These are pretty easy to use command line tools, but there is a program in Gnome that provides an excellent GUI interface for them. gFTP: To comment on this post, please visit this open thread on my old blogs. The…

Aliases for your Linux command

The example Sean gives us here is probably kind of dumb. One of the more useful aliases is for people trained on another system who want things like “dir” to give you a directly lesson (so you set dir to be an alias of ls, with whatever options you like).

Using the Bash complete Command

This is mundane but important. A word on the command line. I recently read a critique of Linux written by some pinhead from Russia explaining in detail why Linux was not “desktop ready.” Which is laughable. Anyway, Dweeb claimed that one of the reasons that Linux was not desktop ready is that it is not…

Is he doing this from memory or is he looking it up as he goes along?

Redirecting Output

Sean Powers’ tip of the day: Thank you Sean. now, can we do a better job that Sean did and come up with some actual uses for this ability?

Are you having trouble getting your wireless networking to work? Well, good luck with that. It can be difficult. Here, I provide you with one tip that you will not find in most troubleshooting documents but that is absolutely essential. Thisw may be the thing you need to do to make your wireless connection work.…

su and sudo howto

Sticky Windows

What is your disk usage?

In Linux, if you want to find out what your disk usage is by directory, in order to see what the heck is filling up your hard drive, try this at the command prompt:

How to turn off tooltips in Gnome

Tool tips (a.k.a. tooltips) are those annoying, usually mostly yellow flyouts that appear as your mouse moves over various parts of a GUI. Although tooltips violate one of the Fundamental Rules (don’t do shit if I don’t click you you) they may actually be useful to some people either when an application, desktop, or system…

ping traceroute

Very funny, sean. I’m talking about the simu-bot.

If you try to sudo your way through a command with pipes and/or redirects, part of the sequence of commands may be producing sudo-read/writeable streams of data or data objects, which the other parts of the sequence can’t use because they were spawned by your shell and not root. The solution is to embed the…

How to make a symbolic link

grep

grep Now, for your assignment, write a bash one liner or short script that finds and kills any process associated with Firefox.

Print Screen

In the old days, it was often easier, and indeed made sense, to just print the screen. I once set up a system that ate data off of some rather esoteric machines, store it, analyze it, and make a screen of data and a screen with a graph on it. PrtScr. PrtScr. Tape the data…

Command Line Fun

HTML Code Cheat Sheet

As you know, you can’t just type anything into a blog or other HTML document. Some symbols need to be typed in in ‘code’ in order to make them come out right. But what is the code for, for instance, a lesser than sign, or one of those funny foreign letters, or the symbols from…

Autostarting Programs in KDE 4 (Linux)

Blogger Dot Com Recent Comment Widget

Free for you from Almost Diamonds. Click here for the free widget!

Don’t be a minion of Satan

… But if you must, here’s how. How to make Microsoft formats the default when working with OpenOffice.com.

He starts a blog called Linux in Exile. This is a must read blog. It addresses the fundamental nature of evil. And it’s a new blog. Have a look, lend support, and enjoy, because eventually, Agents from the Dark Side will probably come and take him away. (Although, I understand the blog writer had some…

Have a look at this video: While you are looking at it, pass your mouse cursor over it and notice the appearance of a search box at the top of the video. This search box violates the prime directive: Shit you do not ask for should not happen. There is an increasing number of such…