Linux Commands

How to search files for specific terms:
grep -r [search term] .

How to add items such as svn, mvn, java, etc. to your PATH and set environment variables for all users:
Edit the /etc/profile file and then run .[space]/etc/profile with
export PATH=$PATH:/usr/java/jdk1.5.0_07/bin

How to set an environment variable:
export JAVA_HOME=/usr/java/
export ANT_HOME=/usr/ant/

How to find out where and command is installed such as java, ant, mvn:
which java
which ant
which mvn

How to stop a running program:
First determine the pid of the program:
ps -ef | grep [program name]

Then use the pid to kill the program:
kill -9 [pid]

How to search for a file:
find . -name [filename]

How to unmout a drive (Notice the command is umount and NOT UNmount):
umount [mount location]

How to clear the Java Web Start cache:
javaws -uninstall

How to view the Java Web Start Console
javaws -viewer

How to mount a drive:
mount -t [new mount name (this directory must exist)] [mount location]
mount -t /home/user/share /mnt/floppy

Related Posts:

  • Apple Mac mini/2.5GHz Core i5 (Late 2012) specs MANUFACTURER’S DESCRIPTION                                                        &n… Read More
  • Top 5 all-in-one PCs Big-screen all-in-one PCs are increasingly dual-purpose devices: You can use them as computers for playing PC games, using productivity apps, surfing the web and more. But thanks to HDMI inputs, you can also connect a gaming… Read More
  • Microsoft hopes for second chance with Windows 8.1 Microsoft hopes for second chance with Windows 8.1 Mark Hachman As Microsoft’s BUILD developer conference kicks off this Wednesday, the company faces a daunting task: To convince developers and tech enthusiasts tha… Read More
  • Mobile operating system A mobile operating system, also called a mobile OS, is an operating system that is specifically designed to run on mobile devices such as mobile phones, smartphones, PDAs, tablet computers and other handheld devices. Th… Read More
  • Windows 8 Pro Discount Officially Ended Well, it's official, you can no longer purchase an upgrade to Windows 8 Pro for the discounted price of $39.99. As of February 1, Microsoft has quintupled the price to $199.99. Just upgrading to the standard Windows 8, w… Read More

0 comments: