This is a discussion on Notes of Linux within the Operating Systems forums, part of the Computer Hardware/Software and Networking category; Hi All This Questions and answers will be very helpful for you to how to deal with the Operating Systems, ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Hi All This Questions and answers will be very helpful for you to how to deal with the Operating Systems, 1. Q. How do you list files in a directory? A. ls - list directory contents ls �l (-l use a long listing format) 2. Q. How do you list all files in a directory, including the hidden files? A. ls -a (-a, do not hide entries starting with .) 3. Q. How do you find out all processes that are currently running? A. ps -f (-f does full-format listing.) 4. Q. How do you find out the processes that are currently running or a particular user? A. ps -au Myname (-u by effective user ID (supports names)) (a - all users) 5. Q. How do you kill a process? A. 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) 6. Q. What would you use to view contents of the file? A. 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. 7. Q. What would you use to edit contents of the file? A. vi screen editor or jedit, nedit or ex line editor 8. Q. What would you use to view contents of a large error log file? A. tail -10 file_name ( last 10 rows) 9. Q. How do you log in to a remote Unix box? A. Using telnet server_name or ssh -l ( ssh - OpenSSH SSH client (remote login program)) 10.Q. How do you get help on a UNIX terminal? A. man command_name info command_name (more information) -Vignesh ![]() |
| Sponsored Links |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to get IE for linux? | shaalini | Operating Systems | 4 | 03-28-2008 10:42 PM |
| Ubuntu Linux | prasannavigneshr | Operating Systems | 7 | 02-28-2008 10:24 PM |
| How to install Linux in my PC? | $enthil | Operating Systems | 1 | 01-09-2008 10:17 PM |
| Notes on Test Estimation | sudhir | Software Testing | 3 | 03-30-2007 05:23 AM |
| Linux anyone? | drecko | The Lounge | 8 | 03-08-2007 08:00 PM |