Category
cmd
-
03.17.12Text manipulation on UNIXA quick link to IBM's introduction to text utilities on UNIX. They know the stuff.
-
09.08.11Changing permissions only in directories$ chmod -R u+rX Changes recursively the write permissions only in the directories. It has been very useful to me lately and I have to admit I did not know this till some weeks ago.
-
08.25.11Clearing the terminal screenCtrl + l Clears the terminal screen.
-
07.25.11Edit a file using vi in read-only mode$ vi -R filename Edits filename in read-only mode. I use it more often than the more or less commands to read code because of vi's syntax highlighting.
-
11.01.10gleeBox: mouseless browsing for Chrome, Safari & FirefoxI bet you are already tired of using the mouse for browsing. Download gleeBox and forget about it. Simply GREAT. (To be honest, I should use lynx to browse the web, but...) Apologies for taking so long to write a post, I have been working hard irl. As all of you, certainly :)
-
07.03.10Which package does this file belong to?On FreeBSD, we use the pkg_info command this way: $pkg_info -W /usr/local/bin/mysql /usr/local/bin/mysql was installed by package mysql-client-5.5.2 Enjoy!
-
02.23.10Force fsck at next boot# touch /forcefsck Creating an empty forcefsck file in the root directoy will force fsck to run at the next boot.
-
12.31.09Make LoveIn FreeBSD: $ cd /usr/src $ make love Enjoy the output. Merry Christmas! Source: psybermonkey
-
11.27.09Ignoring an aliasSometimes I want to ignore an alias. That might seem to make no sense because one of the reasons (the reason?) to use an alias (like ls='ls --color') is creating shortcuts. But, in some cases I need to use the real command, with its real output. In my case, it is because I share the same username with other people on some systems (yes, it is pretty awful, but that is another issue). To do this, precede the command with a backslash: '\'. For example: $ \ls Update: As loood has said in the comments, typing the command in quotes has the same ...
-
09.22.09Listing all service status# service --status-all anacron (pid 2435) is running... atd (pid 2405) is running... auditd (pid 1777) is running... Avahi daemon is running cpuspeed is stopped crond (pid 2385) is running... cupsd (pid 2424) is running... dnsmasq is stopped hald (pid 2129) is running... httpd is stopped [...] Runs all init scripts (located in /etc/init.d), in alphabetical order, with the status option. Note: Only in Red Hat and redhat-like distros (Fedora, Mandriva,...).