New
Some Useful Linux Commands:
To limit the root logins:
Add all the ttys from where you want to login directly as root to /etc/securetty file. The /etc/securetty file governs the consoles from where you can log into Linux as the root user.
To change to Language and Font Variable:
Edit the /etc/sysconfig/i18n
Acrobat 5: works fine only if LANG variable is set to en_US
tune2fs: Adjust tunable filesystem parameters on second extended filesystems
-c max-mount-counts
adjust the max. mounts count between two filesystem checks
-C mount-count
Set the number of times the filesystem has been mounted
-i interval-between-checks[d|m|w]
Adjust the maximal time between two filesystem checks.
-l List the contents of the filesystem superblock
To list the open ports in Linux:
# nmap hostname
strace
In the simplest case strace runs the specified command until it exits. It intercepts and records the system calls which are called by a process and the signals which are received by a process. The name of each system call, its arguments and its return value are printed on standard error or to the file specified with the -o option
-p pid Attach to the process with the process ID pid and begin tracing
-e is a qualifying expression which modifies which events to trace or how to trace them
-o filename Write the trace output to the file filename rather than to stderr
-f Trace child processes as they are created by currently traced processes
as a result of the fork system call
Replace -p [pid] with [command] to trace a specific command
# strace -fe verbose=all -e write=all -o /tmp/strace.log -p [pid]
To enable XDMCP broadcast :
In Red Hat Linux 7.1
Edit /etc/X11/gdm/gdm.conf and look for the [XDMCP] section and change Enable=false to Enable=true
In Mandrake 8.1
edit the file /usr/share/config/kdm/kdmrc and locate:
[Xdmcp]
Enable=false
change the false to true
save the file and then restart the X Server (logout and pick menu ->
Restart Xserver)
linux home