Archive for the ‘Linux/Unix’ Category

Setup PuTTy for VT320 Emulation

putty
At my current job we currently use a way over priced termail emulator to connect to our HP-UX (unix) server. This emulator supports vt320 emulation which is needed to use the function keys which is setup as shortcuts for our staff. The software is very outdated and to renew would be very expensive. Seeing that I am a big fan of putty I have been advocating a switch to it but ran into some problems during some testing, mainly the function keys would not work. I knew it had to be the emulation. After...

w – Linux Command (like “who” but with more info)

The w command shows who is logged in to the system and what they are doing. A login, logging in or logging on is the entering of identifier information into a system by a user in order to access that system (e.g., a computer or a website). It generally requires the user to enter two pieces of information, first a user name and then a password. The basic syntax of w is: w [options] [username1, username2, . . .] The square brackets indicated that the enclosed items are optional. When used without...

vi – Linux/unix editor

This is one the most important tools to know and could either cause alot of headaches and save you from them. This is most common text editor in Linux and UNIX. People tend to love it or hate it. Either way, it’s nearly always there in any *nix implementation and just by memorising a few commands you can be up and running with it. Just remember if you get stuck type :q! to exit without saving. To open a file in vi type: vi filename The first thing that throws you is that to enter text into...

who – linux command

term_icon
This command allows use to view who is logged on either interactively at the console or via an SSH session. The who command without parameters gives us the basics. [root@esx1host firewall]# who root tty1 Jul 25 10:30 root tty2 Jul 25 09:56 root pts/1 Jul 29 09:29 (workstation.domain.com) If we want to see all the details of users we can use the -a switch to show all data. We tend to combine -a with -H (i.e. -aH) to display column headers making it easier to read...

su / sudo

term_icon
su // The command “su” stands for “switch user”. And it does just that, it switches users. When it used without parameters, we are specifying to switch to the user root. However, we can use the su command to switch shell to any user account that we know the password of. In the first example, we are logged in as the user Bob and we are switching to user Pat. [Bob@host Bob]$ su Pat Password: [ali@esx1host kevin] In this second example, we are switching from being logged...

How to open nautilus browser as root

tux_file_linux
Just hit “Alt+F2″ an type gksudo nautilus OR through terminal… gksudo nautilus or sudo nautilus. OR install the package nautilus-gksu that enables an option when you right-click on a file (also directories and other…) in nautilus: “Open as root”. After installed it restart GNOME and your Nautilus will have the new feature.

Unix: find

hp-ux_small
One of the commands that everyone should master is the find command. The first, and most obvious, use is find‘s ability to locate old, big, or unused files, or files that you forgot where they are. The other important characteristic is find‘s ability to travel down subdirectories. If you wanted a recursive directory list, and ls doesn’t have this option, use find. Problems with other methods Normally the shell provides the argument list to a command. That is, Unix programs...

Linux: Common Commands

term_icon
/etc/ssh/sshd_config The configuration of SSH client is stored in the text file /etc/ssh/ssh_config The configuration of the SSH server daemon is stored in the text file /etc/ssh/sshd_config. An important setting in this file is PermitRootLogin=No. This is the default setting in ESX 3.x and it is recommended that you keep the setting at “No”. This way you have an audit trail and see exactly who is logging in, rather than just “root”. You can quickly what the setting is...
Twitter Delicious Facebook Digg Stumbleupon Favorites More
329 queries in 4.158 seconds.