Q. How do I zip files in Linux so that I cam email them to my friend? How do I zip files on server at shell prompt?
A. zip is a compression and file packaging utility for Unix, Linux, VMS, MSDOS, OS/2, Windows NT, Minix, Atari and Macintosh, Amiga and Acorn RISC OS etc. This utility [...]
Q. I need kernel headers to compile module and vmware tools. How do I install kernel headers under Debian / Ubuntu Linux.?
A. To install cLinux kernel headers for currently running version, type the following commands at shell prompt (open terminal and type the command):
Make sure you have updated version
$ sudo apt-get update
Search for kernel version [...]
Q. How do I find out what version of Linux distribution I’m using from the shell prompt?
A. To find out what version of Linux (distro) you are running, enter the following command at the shell prompt:
$ cat /etc/*-release
Output on RHEL 5
Red Hat Enterprise Linux Server release 5 (Tikanga)
Output on Ubuntu 7.10
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=7.10
DISTRIB_CODENAME=gutsy
DISTRIB_DESCRIPTION=”Ubuntu 7.10″
Q. I’d like to find out if xyz package is available or not using apt-get command. How do I look up package names and contents via shell command?
A. You need to use apt-cache command to performs a variety of operations on APT’s package cache. apt-cache does not manipulate the state of the system but [...]
Q. cshell is a shell (command interpreter) with C-like syntax. How do I download and install csh shell on Linux?
A. csh is a command language interpreter incorporating a history mechanism , job control facilities , interactive file name and user name completion, and a C-like syntax. It is used both as an interactive [...]
Q. Can you tell me command to delete a directory in terminal?
A. You need to use the rmdir utility / command. The rmdir utility removes the directory entry specified by each directory argument, provided it is empty. Arguments are processed in the order given. In order to remove both a parent directory [...]
Q. I’d like to monitor my UNIX / Linux server reboot / shutdown usage. How do I get more information about reboot and shutdown command?
A. There is a file called /var/log/wtmp. The pseudo user reboot logs in each time the system is rebooted. Thus last reboot will show a log of all [...]