Linux Cheat sheets

Posted by Javeed Abdul on February 7, 2010 under Linux | Be the First to Comment

Below list of Linux cheat sheets can be used by everybody who administer Linux operating system including beginners/newbies and bearded gurus.

Bash Shortcuts

Posted by Javeed Abdul on under Linux, Sun Solaris | Be the First to Comment

Keyboard shortcut Action
Navigation
Ctrl-A Go to the beginning of the line (note that if you use GNU screen, you can use the Home button to do this, especially considering that Ctrl-A is a special control character in screen).
Ctrl-E Go to the end of the line (note that if you use GNU screen, you can use the End button to do this).
Alt-B (or ESC, left arrow) Jump back one word using a non-alphanumeric character as delimiter.
Alt-F (or ESC, right arrow) Jump forward one word using a non-alphanumeric character as delimiter.
Ctrl-PGUP or Shift-PGUP This may or may not work, and it works differently on different console apps. It will either scroll up one line at a time, 1 page at a time, or it may not work at all. I’m inclined to think it’s not a bash shortcut at all.
Ctrl-PGDN or Shift-PGDN Same as the above but scrolling is done in the opposite direction.
Up/Down Previous/Next command in history. This one is way too obvious but I’m including it for completeness.
Ctrl-R History search. For example, Ctrl-R svn Ctrl-R Ctrl-R … will cycle through all recently run commands with the ‘svn’ in them. It is one of the most useful shortcuts in bash.
Command Line Manipulation
Ctrl-W Cut one word backwards using white space as delimiter.
Alt-BACKSPACE Cut one word backwards using a non-alphanumeric character as delimiter (different from Ctrl-W, for example, abc;bcd will cut to abc;).
Ctrl-K Cut everything forward to end of line.
Ctrl-U Cut everything backwards to beginning of line.
Ctrl-T Transpose the current character with the previous one. I almost never use this. Never mind, I never use it, but someone might find it useful.
Alt-T Transpose the word at cursor with the one before cursor. In other words, swap them around.
Ctrl-Y Paste whatever was cut by the last cut command.
Ctrl-V Insert the next character literally. For example, Ctrl-V TAB inserts the actual TAB character. This shortcut is often misunderstood because of mistyping Ctrl-V and not realizing what it does.
Ctrl-_ Undo the last command. Don’t forget – it’s Ctrl-Shift-MINUS, not Ctrl-MINUS.
Alt-R Revert all changes to current line. Very useful if you accidentally modify a command in history.
Alt-U/Alt-L/Alt-C Uppercase/lowercase/capitalize from cursor to end of word and move cursor past end of word.
Terminal control
Ctrl-L Clear screen while keeping whatever is already typed in the command line intact.
Ctrl-S Suspend currently running terminal.
Ctrl-Q Unsuspend the terminal suspended by Ctrl-S. You need to be aware of this shortcut because 99% of the time you’ve accidentally pressed Ctrl-S and need to undo its effects.
Ctrl-Z Suspend the currently running process (usually followed by bg to resume it in the background or fg to resume in the foreground).
TAB Autocomplete. Start typing, then hit TAB. You will either get a list of possible completion values (2 TABs needed) or the only choice will be filled in (only 1 TAB is needed). This shortcut is quite obvious and well known, so I put it at the bottom of the list.

Security Software Tools for Linux

Posted by Javeed Abdul on under Linux | Be the First to Comment

Linux is a hacker’s dream computer operating system. It supports tons of tools and utilities for cracking passwords, scanning network vulnerabilities, and detecting possible intrusions. I have here a collection of 10 of the best hacking and security software tools for Linux. Please always keep in mind that these tools are not meant to harm, but to protect.
Read more of this article »

Simple Troubleshooting steps in Linux

Posted by Javeed Abdul on February 6, 2010 under Linux | Be the First to Comment

Hardware

Getting ram information

cat /proc/meminfo

or if you want to get just the amount of ram you can do:

cat /proc/meminfo | head -n 1

Another fun thing to do with ram is actually open it up and take a peek. This next command will show you all the string (plain text) values in ram.

sudo dd if=/dev/mem | cat | strings

Getting cpu info

Sometimes in troubleshooting we want to know what processor we are dealing with along with how much cpu is currently being used by our OS and programs. We can do this with these two commands.
Read more of this article »

Google Chrome OS in VirtualBox

Posted by Javeed Abdul on January 30, 2010 under Interesting, Linux, Sun Solaris | Be the First to Comment

Recently a build of Google’s Chrome OS was released for testing. Though it’s not ready for prime time, you might want to test it out in a virtual machine. Today we take a look at how to setup and run it in VirtualBox.

Note: In this example we are using VirtualBox 3.0.12 running on a 32-bit version of Windows 7 Ultimate.

Read more of this article »

Linux Basic shortcut

Posted by Javeed Abdul on January 26, 2010 under Linux | Be the First to Comment

This is a practical selection of the commands we use most often. Press <Tab> to see the listing of all available command (on your PATH). On my small home system, it says there are 2595 executables on my PATH.  Many of these “commands” can be accessed from your favourite GUI front-end (probably KDE or Gnome) by clicking on the right menu or button. They can all be run from the command line.  Programs that require GUI have to be run from a terminal opened under a GUI.

Legend:
<> = single special or function key on the keyboard. For example <Ctrl> indicates the “control” key.
italic = name of the file or variable you probably want to substitute with your own.
fixed width = in-line Linux commands and filenames.

Notes for the UNIX Clueless:
1. LINUX IS CASE-SENSITIVE. For example: Netscape, NETSCAPE and nEtscape are three different commands. Also my_filE, my_file, and my_FILE are three different files. Your user login name and password are also case sensitive. (This goes with the tradition of UNIX and the “c” programming language being case sensitive.)
2. Filenames can be up to 256 characters long and can contain letters, numbers, “.” (dot), “_” (underscore), “-” (dash), plus some other not recommended characters.
3. Files with names starting with “.” are normally not shown by the ls (list) or dir commands. Think of these files as “hidden”. Use ls -a (list with the option “all”) to see these files.
4. “/” is an equivalent to DOS “\” (root directory, meaning the parent of all other directories).
5. Under Linux, all directories appear under a single directory tree (there are no DOS-style drive letters).
6. In a configuration file, a line starting with # is a comment.

7.1 Linux essential shortcuts and sanity commands

<Ctrl><Alt><F1>
Switch to the first text terminal. Under Linux you can have several (6 in standard setup) terminals opened at the same time.

<Ctrl><Alt><Fn> (n=1..6)
Switch to the nth text terminal.

tty
Print the name of the terminal in which you are typing this command.

<Ctrl><Alt><F7>
Switch to the first GUI terminal (if X-windows is running on this terminal).

<Ctrl><Alt><Fn> (n=7..12)
Switch to the nth GUI terminal (if a GUI terminal is running on screen n-1). On default, nothing is running on terminals
8 to 12, but you can run another server there.
Read more of this article »

Types of File systems

Posted by admin on December 21, 2009 under Linux, Sun Solaris | Be the First to Comment

Type of Filesystem so far..Its a mess ……
Read more of this article »

Wine HQ

Posted by admin on under Linux | Be the First to Comment

Run Windows applications on Linux, BSD, Solaris and Mac OS X.

Wine lets you run Windows software on other operating systems. With Wine, you can install and run these applications just like you would in Windows.

Wine is still under active development. Not every program works yet, however there are already several million people using Wine to run their software.

Clickhere