HOME
Most Popular
New Books

Linux administration

Pages: 0
  • 0. Q. How do you list files in a directory?


  • 1. How do you list all files in a directory, including the hidden files?


  • 2. How do you find out all processes that are currently running?

    Ans: ps -f (-f does full-format listing.)


  • 3. How do you find out the processes that are currently running or a particular user?

    Ans: ps -au Myname (-u by effective user ID (supports names)) (a - all users)


  • 4. How do you kill a process?

    Ans: kill -9 8 (process_id 8) or kill -9 %7 (job number 7)
    kill -9 -1 (Kill all processes you can kill.)
    killall - kill processes by name most (useful - killall java)


  • 5. What would you use to view contents of the file?

    Ans: less filename
    cat filename
    pg filename
    pr filename
    more filename
    most useful is command: tail file_name - you can see the end of the log file.


  • 6. What would you use to edit contents of the file?

    Ans: vi screen editor or jedit, nedit or ex line editor


  • 7. What would you use to view contents of a large error log file?

    Ans: tail -10 file_name ( last 10 rows)


  • 8. How do you log in to a remote Unix box?

    Ans: Using telnet server_name or ssh -l ( ssh - OpenSSH SSH client (remote login program))


  • 9. How do you get help on a UNIX terminal?

    Ans: man command_name
    info command_name (more information)


  • 10. How do you list contents of a directory including all of its
    subdirectories, providing full details and sorted by modification time?

    Ans: ls -lac
    -a all entries
    -c by time


Pages: 0

NEW!!!

TOOOO Many results in general search?!! Try this customized search engine for searching online books