≡ Menu

Linux

HowTo: Install firefox-14.0.1.tar.bz2 in Linux

I‘ve downloaded Firefox version 14.0.1 from mozilla ftp server. The name of file is firefox-14.0.1.tar.bz2. How do I install firefox in any Linux distribution?
[click to continue…]

Linux: Mount FreeBSD UFS 2 File System Command

I need to copy files from my second hard disk. This hard disk formatted with UFS 2 file system. How do I mount UFS 2 file system created by FreeBSD on my Debian Linux 6 based system?
[click to continue…]

FreeBSD: Wake Up Servers Using Wake-on-LAN ( WOL ) Command

I know how to send WOL command using Linux. But, how do I send Wake on LAN (WOL) frames to hosts on a local Ethernet network using FreeBSD operating systems to wake up my servers?
[click to continue…]

I‘m trying to use Cinelerra video editing and compositing software under Linux operating systems. However, I’m getting the following error:

MWindow::init_shm: /proc/sys/kernel/shmmax is 0x1000000.
It should be at least 0x7ffffff for cinelerra.

How do I fix this problem?
[click to continue…]

HowTo: Reverse a String In Unix / Linux Shell?

How do I reverse lines of a file or files under Linux or Unix like operating systems?
[click to continue…]

Bash Shell Script To Test For Empty Folder

How do I check if a directory contains files? How do I find out if a directory contains files using bash shell under Linux or Unix like operating systems?
[click to continue…]

Linux / Unix: Rsync Resume Partially Downloaded Files

I know wget command can resume downloads. H>ow do I resume partially transferred files using rsync command line under Unix like operating systems?
[click to continue…]

Linux / Unix: Find Hidden Directories, Files and Folders

I‘m a new Unix user and trying to find the hidden directory called .movies but I do not know where it is on the file system. How do I find a hidden folder or directories under Unix like operating systems?
[click to continue…]

Linux mount: Bind or Remount Part Of File Hierarchy At Another Directory

How do I mount the contents of /home/multimedia in two places under Linux operating systems?
[click to continue…]

Bash: Get The Last Argument Passed to a Shell Script

I‘m writing a bash wrapper script that will pass arguments to the command. I need to find out the last argument if I call the wrapper as follows:

./wrapper -a -b –longarg=foo thisfilename.txt
./wrapper -a -b thisfilename.txt
./wrapper -a –next=true thisfilename.txt

Where,
=> $@ is all of them.
=> $0 is script name.
=> $1 is first arg.

I want thisfilename.txt stored in a shell variable called $last. How do I find the last argument passed to a shell script written in bash or ksh under Unix like operating systems?
[click to continue…]