Many home users often power off their computers when they are not being used. Some do it to be green: turning idle computers off saves electricity and $$. Others do it for the extra security. To those who are hard-core Linux geeks, machine uptime is sacred, and voluntarily rebooting the machine is nothing but sacrilegious.
I have been computing all my life without using a dual pane file manager until one day I decided that having one will greatly enhance my qualify of life. What I had in mind was something that will make my life easier in the copying or moving of files from 1 directory to another.By dual pane (or twin-pane) file manager, I mean a file manager that displays two directories side by side (one active, one passive). The term is confusing because often a dual pane file manager has a third pane that lets you enter commands to execute on the active directory.
Now that I am back from vacation, I had to take care of some chores, like uploading the pictures taken with my digital camera.I stepped out during the long upload process (400+ pictures). When I returned, it was already done. To just make sure all pictures are now on the server, I wanted to count the number of files in the targetdir directory.$ ls -1 targetdir | wc -l454
You can open/close the CD, DVD disk tray from the command line.Many Linux users already know about the eject command for opening the disk tray: $ ejectHow do you close the tray?Turns out that you can use the same eject command but with an additional -t option to close the tray.$ eject -t
I want to revisit a topic: how to tail a log file. My earlier posts discussed the use of tail and less commands to tail a log file, and multitail if you need to tail multiple files at once.This followup article discussed two other ways to tail a log file: the use of the most command, and to tail within emacs.
Remote login using the SSH protocol is a frequent activity in today's internet world. With the SSH protocol, the onus is on the SSH client to verify the identity of the host to which it is connecting. The host identify is established by its SSH host key. Typically, the host key is auto-created during initial SSH installation setup.
If you are using Debian-based distributions (Debian, Ubuntu, etc), you are probably familiar with the apt-get update followed by the apt-get upgrade routine. That is what I regularly use to upgrade ALL packages that have an update available.But what if you only want to upgrade certain individual packages?apt-get upgrade will upgrade ALL or nothing. So, that is out of the question.
How can we determine when a running process was started?The venerable ps command deserves first consideration.Most Linux command-line users are familiar with either the standard UNIX notation or the BSD notation when it comes to specifying ps options.If ps -ef is what you use, that is the UNIX notation.$ ps -efUID PID PPID C STIME TTY TIME CMDroot 1 0 0 Sep20 ? 00:00:03 init 
Deleting a file is deceptively simple. You can simply use the rm command like this.$ rm file1However, if the file has one or more hard links to it, life gets more interesting. You need to seek and destroy all hard links to the file. A hard link is essentially another name for a file. Hard links to file1 can be created as follows:$ ln file1 file2$ ln file1 tmp/file3