Category: Linux

Sort a File

A Linux command to sort the contests of a file sort file.ext [tags][/tags]

Some Processor Intensive Commands

I run these commands when I am off for lunch or something… sudo /bin/bash /usr/sbin/makewhatis -w sudo /usr/bin/updatedb #These two…

Enable Bridging for VirtualBox in Fedora 8

To access net on a guest OS installed within VirtualBox, you have to enable bridging. This is what I did……

Stop crond When mysqld is Down

A perl script to stop crond if mysqld is down #!/usr/bin/perl # See if MySQL server is alive or not…

File Command

Find the contents of a file using this commande file filename.txt

Linux Command to List all the Files Recursively

Recursively list all files in the current folder and all the sub folders ls -R ls -R1

Linux command to get the MD5 of a File

Use this command to find the MD5 of a file. md5sum file.txt

Creating an Alias in fish shell

Fish shell has an easy method to create a command alias… alias del=’rm’ save_function del

Connecting to a Remote MySQL Host

You can connect to a remote mysql server if you have the necessary permissions… mysql -h mysql.remote.com -u user

Simple Sed Command

Change all occurrences of ‘one’ to ‘two’ in the file.txt file in the grep example, enter this: sed ‘s/one/two/g’ file.txt