Int erview Linux Quest ion & Answers-PART 4

How to see the f ree memory in Linux? /proc/meminf o / f ree

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.)

What are the process states in Unix?

usually by receiving a signal. du -s df T he du command summarizes disk usage by directory. Stopped : T he process has been stopped. Z ombie : T he process is dead but have not been removed f rom the process table.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. . It recurses through all subdirectories and shows disk usage by each subdirectory with a f inal total at the end. 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.

conf consistency and any errors in it? apachectl conf igtest .How do you check f or the httpd.

Sign up to vote on this title
UsefulNot useful