Thelinuxstuff - Blogspot.in 2011 12 Interview Linux Question Answers Part 4.HTML
Thelinuxstuff - Blogspot.in 2011 12 Interview Linux Question Answers Part 4.HTML
How you will see a port is opened or not? netstat an |grep LIST EN (or) nmap ipaddress What is Sticky bit ? If the sticky bit is set f or a directory, only the owner of the directory or the owner of a f ile can delete or rename a f ile within that directory T he sticky bit is an access-right f lag that can be assigned to f iles and directories on Unix systems. T he most common use of the sticky bit today is on directories, where, when set, items inside the directory can be renamed or deleted only by the item's owner, the directory's owner, or the superuser (Without the sticky bit set, a user with write and execute permissions f or the directory can rename or delete any f ile inside, regardless of the f ile's owner.)
As a process executes it changes state according to its circumstances. Unix processes have the f ollowing states: Running : T he process is either running or it is ready to run . Waiting : T he process is waiting f or an event or f or a resource. Stopped : T he process has been stopped, usually by receiving a signal. Z ombie : T he process is dead but have not been removed f rom the process table.
How do you list currently running process? ps How do you stop a process? kill pid How do you f ind out about all running processes? ps -ag How do you search f or a string inside a given f ile? grep string f ilename How do you search f or a string inside a directory? grep string * How do you search f or a string in a directory with the subdirectories recursed? grep -r string *
How do you check the sizes of all users home directories (one command)? a. du -s df T he du command summarizes disk usage by directory. It recurses through all subdirectories and shows disk usage by each subdirectory with a f inal total at the end.
How do you check f or the httpd.conf consistency and any errors in it? apachectl conf igtest