Edit file /etc/sysconfig/network using your favourite editor.
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME="www.pcdog.com"
GATEWAY=192.168.0.1



|
Edit file /etc/sysconfig/network using your favourite editor.
To format the partition with ext3: Code:
# mke2fs -j /dev/hdb1 ext2: Code:
# mke2fs /dev/hdb1 reiser: Code:
# mkreiserfs /dev/hdb1 EDIT: It can also be useful to look what the output is of: Code:
# mount -v -o rw /dev/hdb1 /mnt/hdb1
[root@localhost init.d]# usermod --help If you feel that your user name is not attractive enough, or boring or your taste and experience has changed since the user name was first created, use the following command to change the user name in Linux.
Replace new login name with the new user name you want to use in future, andold login name with the existing username to change. For NIS accounts, additional commands is required to maintain a proper copy of user account across computer network. Run the following commands:
you need to edit this file: etc/resolv.conf #vi /etc/resolv.conf
An ISO image is an archive file (disk image) of an optical disc using a conventional ISO (International Organization for Standardization) format. ISO image files typically have a file extension of .ISO. The name "ISO" is taken from the ISO 9660 file system used with CD-ROM media, but an ISO image can also contain UDF file system because UDF is backward-compatible to ISO 9660. You can mount an ISO images via the loop device under Linux. It is possible to specify transfer functions (for encryption/decryption or other purposes) using loop device.
just mount your CD or iso image to some directory by commands: sudo mkdir /mnt/image sudo mount /dev/cdrom /mnt/image or sudo mount /path/to/your.iso /mnt/image -o loop then copy it’s contents to some directory: mkdir /tmp/newiso cp -r /mnt/image /tmp/newiso
After this you can modify any files in /tmp/newiso, add files, delete them. After modifications are done, create new ISO image to be burned onto CD (or kept somewhere for a rainy day): cd /tmp/newiso and sudo mkisofs -o /tmp/new.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -J -R -V “new iso name” . After mkisofs is finished new ISO file will be created at /tmp directory. It works in any Linux distributions like Ubuntu, Debian or Fedora.
Usage: grep [OPTION]... PATTERN [FILE] ... Search for PATTERN in each FILE or standard input.
Example: grep -i 'hello world' menu.h main.c
Regexp selection and interpretation:
-E, --extended-regexp PATTERN is an extended regular expression
-F, --fixed-strings PATTERN is a set of newline-separated strings
-G, --basic-regexp PATTERN is a basic regular expression
-P, --perl-regexp PATTERN is a Perl regular expression
-e, --regexp=PATTERN use PATTERN as a regular expression
-f, --file=FILE obtain PATTERN from FILE
-i, --ignore-case ignore case distinctions
-w, --word-regexp force PATTERN to match only whole words
-x, --line-regexp force PATTERN to match only whole lines
-z, --null-data a data line ends in 0 byte, not newline
Miscellaneous:
-s, --no-messages suppress error messages
-v, --invert-match select non-matching lines
-V, --version print version information and exit
--help display this help and exit
--mmap use memory-mapped input if possible
Output control:
-m, --max-count=NUM stop after NUM matches
-b, --byte-offset print the byte offset with output lines
-n, --line-number print line number with output lines
--line-buffered flush output on every line
-H, --with-filename print the filename for each match
-h, --no-filename suppress the prefixing filename on output
--label=LABEL print LABEL as filename for standard input
-o, --only-matching show only the part of a line matching PATTERN
-q, --quiet, --silent suppress all normal output
--binary-files=TYPE assume that binary files are TYPE
TYPE is 'binary', 'text', or 'without-match'
-a, --text equivalent to --binary-files=text
-I equivalent to --binary-files=without-match
-d, --directories=ACTION how to handle directories
ACTION is 'read', 'recurse', or 'skip'
-D, --devices=ACTION how to handle devices, FIFOs and sockets
ACTION is 'read' or 'skip'
-R, -r, --recursive equivalent to --directories=recurse
--include=PATTERN files that match PATTERN will be examined
--exclude=PATTERN files that match PATTERN will be skipped.
--exclude-from=FILE files that match PATTERN in FILE will be skipped.
-L, --files-without-match only print FILE names containing no match
-l, --files-with-matches only print FILE names containing matches
-c, --count only print a count of matching lines per FILE
-Z, --null print 0 byte after FILE name
Context control:
-B, --before-context=NUM print NUM lines of leading context
-A, --after-context=NUM print NUM lines of trailing context
-C, --context=NUM print NUM lines of output context
-NUM same as --context=NUM
--color[=WHEN],
--colour[=WHEN] use markers to distinguish the matching string
WHEN may be `always', `never' or `auto'.
-U, --binary do not strip CR characters at EOL (MSDOS)
-u, --unix-byte-offsets report offsets as if CRs were not there (MSDOS)
`egrep' means `grep -E'. `fgrep' means `grep -F'.
With no FILE, or when FILE is -, read standard input. If less than
two FILEs given, assume -h. Exit status is 0 if match, 1 if no match,
and 2 if trouble.
Name route - show / manipulate the IP routing table
Route manipulates the kernel's IP routing tables. Its primary use is to set up static routes to specific hosts or networks via an interface after it has been configured with the ifconfig program. [root@localhost ~]# route
[root@]# ps aux | less how to view processes in linux********* simple selection ********* ********* selection by list ********* #ps -efTask: Use ps commandType the following ps command to display all running process Where,
Task: see every process on the system
Task: See every process except those running as root
Task: See process run by user vivek
If you configured the Apache HTTP Server with the HTTP Configuration Tool in previous versions of Red Hat Linux and then performed an upgrade, you can use the application to migrate the configuration file to the new format for version 2.0. Start the HTTP Configuration Tool, make any changes to the configuration, and save it. The configuration file saved will be compatible with version 2.0.
The HTTP Configuration Tool allows you to configure the /etc/httpd/conf/httpd.conf configuration file for the Apache HTTP Server. It does not use the oldsrm.conf or access.conf configuration files; leave them empty. Through the graphical interface, you can configure directives such as virtual hosts, logging attributes, and maximum number of connections. Only modules that are shipped with Red Hat Linux can be configured with HTTP Configuration Tool. If additional modules are installed, they can not be configured using this tool. The httpd and redhat-config-httpd RPM packages need to be installed to use the HTTP Configuration Tool. It also requires the X Window System and root access. To start the application, go to the Main Menu Button => System Settings => Server Settings => HTTP Server or type the command redhat-config-httpd at a shell prompt (for example, in an XTerm or GNOME Terminal).
The general steps for configuring the Apache HTTP Server using the HTTP Configuration Tool are as following: Configure the basic settings under the Main tab. Click on the Virtual Hosts tab and configure the default settings. Under the Virtual Hosts tab, configure the Default Virtual Host. If you want to serve more than one URL or virtual host, add the additional virtual hosts. Configure the server settings under the Server tab. Configure the connections settings under the Performance Tuning tab. Copy all necessary files to the DocumentRoot and cgi-bin directories. Exit the application and select to save your settings.
|