Sie sind auf Seite 1von 4

8/31/2015 java.interview.

preparation: Unix commands : Top 10 frequently asked interview questions

java.interview.preparation
This blog is to provide details for java interview preparation. Everybody is busy in day to day project work and most of times we are not able to spend time for
due to workload. I am trying to provide the consolidated details of java topics and sharing my java interview experiences.

Home Concurrency Design Pattern Spring MVC Spring JMS Data structure Collection Threading Hibernate Face 2 Face I

Interview Planning Interview Questions Memory Mgmt & GC XML Puzzles DB Java 1.5 Transaction Inner Class Cache

FREE UBER RI
Unix commands : Top 10 frequently asked interview questions Register belo
Uber Cab/Tax
In most of banks, the unix or linux is prefered application hosting platform, compare to the CLICK HERE FO
RIDE !
windows. It is always added advantage for candidate to be familiar with unix commands.
These are basic unix commands which are sometime asked to candidate for checking his\her
unix skills.  These questions are mainly related to log search, find commands and unix Best Java Job

processes. These commands are very handy if we are investigating any issue in Software QA E
production\uat. As application developer we must have came across these unix commands. India
NCR Corporati
Mostly questions are not asked in depth and they just confirm your familiarity with unix
Software Deve
commands. These are most frequently asked unix commands in interview. India
Vinove Softwar
Javascript Dev
1) How to find hidden files in current directory? Bangalore, Kar
CloodOn Learn

   $ ls ­lrta Technology Co
Banalore, Karn
HP
2) How to find current running processes in unix server?
Software Engin
India
  $ ps ­ef Interactive Inte
Software Engin
and if we want to find specific process we can use 'grep' with pipe India
  $ ps ­ef | grep ­i 'application' Adobe India
Software Test E
3) How to find process which is taking maximum memory in server? Banalore, Karn
  $ top Citrix

  top command tell us about cpu usage , process id and other details. below is output of top command Java Infrastruc
Fort Lauderdale
USG
PHP­Programm
Hannöver, Nied
FERCHAU Eng
Sr Software De
San Mateo, CA

POST A JOB >

4) How to find Exception in log files available in current directory and how to find number of occurrence?
     MUST READ JA
   $ grep 'Exception' log1.txt | wc ­l

5) find all files in current and subdirectories which contains 'log' name?

   $ find . ­name 'log'
  

Effective Java (En
6) How do you access command line arguments from within a shell script?
List Price: Rs.6
Our Price: Rs.5
Arguments passed from the command line to a shell script can be accessed within the shell script by using a $ (dollar sign) immediately followed with
the argument's numeric position on the command line.

7) How to tails last 200 lines of any log fine?
  
    $ tail ­200f filename.txt
POPULAR POS
8) How to find remaining disk space in unix\linux server?
Unix commands 
    $ df ­kl interview questio

Java Memory Ma
df ­kl
Filesystem   1024­blocks      Used Available Capacity  iused    ifree %iused  Mounted on Java Interviews F

http://javadecodedquestions.blogspot.in/2014/01/unix­commands­top­10­frequently­asked.html 1/4
8/31/2015 java.interview.preparation: Unix commands : Top 10 frequently asked interview questions

/dev/disk0s2   244277768 153679844  90341924    63% 38483959 22585481   63%   / Hibernate Intervi

java interview wi
9) How to make any script file executable?
    $chmod 755 *.sh Database Intervi
Developers
10) How to kill process in unix server?
    $ kill ­9 #pid Java 1.7 feature
these #pid can be found using ps ­ef command.
Data Structure q
developer
BASIC Unix Command List
JMS Interview qu
ls ­­­ lists your files
ls ­l ­­­ lists your files in 'long format', which contains lots of useful information, e.g. the exact size of the file, who owns the file and who has Understanding S
the right to look at it, and when it was last modified.
ls ­a ­­­ lists all files, including the ones whose filenames begin in a dot, which you do not always want to see.
There are many more options, for example to list files by size, by date, recursively etc. FACEBOOK
more filename ­­­ shows the first part of a file, just as much as will fit on one screen. Just hit the space bar to see more or q to quit. You can
use /pattern to search for a pattern. GOOGLE+ FOL
mv filename1 filename2 ­­­ moves a file (i.e. gives it a different name, or moves it into a different directory (see below)
cp filename1 filename2 ­­­ copies a file FOLLOWERS
rm filename ­­­ removes a file. It is wise to use the option rm ­i, which will ask you for confirmation before actually deleting anything. You can
make this your default by making an alias in your .cshrc file. Join this 
with Google Frien
diff filename1 filename2 ­­­ compares files, and shows where they differ
Members
wc filename ­­­ tells you how many lines, words, and characters there are in a file
chmod options filename ­­­ lets you change the read, write, and execute permissions on your files. The default is that only you can look at
them and change them, but you may sometimes want to change these permissions. For example, chmod o+r filename will make the file
readable for everyone, and chmod o­r filename will make it unreadable for others again. Note that for someone to be able to actually look at
the file the directories it is in need to be at least executable. 
File Compression
gzip filename ­­­ compresses files, so that they take up much less space. Usually text files compress to about half their original
size, but it depends very much on the size of the file and the nature of the contents. There are other tools for this purpose, too
(e.g. compress), but gzip usually gives the highest compression rate. Gzip produces files with the ending '.gz' appended to the Already a member
original filename.
gunzip filename ­­­ uncompresses files compressed by gzip.
TOTAL PAGEV
gzcat filename ­­­ lets you look at a gzipped file without actually having to gunzip it (same as gunzip ­c). You can even print it
directly, using gzcat filename | lpr
printing
lpr filename ­­­ print. Use the ­P option to specify the printer name if you want to use a printer other than your default printer. For ABOUT ME
example, if you want to print double­sided, use 'lpr ­Pvalkyr­d', or if you're at CSLI, you may want to use 'lpr ­Pcord115­d'. See
'help printers' for more information about printers and their locations.
DIRECTORIES
Directories, like folders on a Macintosh, are used to group files together in a hierarchical structure.
mkdir dirname ­­­ make a new directory Java Intervie

cd dirname ­­­ change directory. You basically 'go' to another directory, and you will see the files in that directory when you do 'ls'. You IT Designer\Arch
always start out in your 'home directory', and you can get back there by typing 'cd' without arguments. 'cd ..' will get you one level up from with more than 1
your current position. You don't have to walk along step by step ­ you can make big leaps or avoid walking around by specifying pathnames. design and deve
applications.
pwd ­­­ tells you where you currently are.
View my complet

Java Jobs
DB Jobs
Testing job Jobs from 
Software Deve
Software QA Engineer Software Test Engineer
Development Engineers Amazon Bangalo
India Banalore, Karnataka, India
Bangalore, Karnataka, India Developer Jav
NCR Corporation Citrix
Software Engineer (Intern) Wipro Limited
Software Development Engineer Finance Executive
Banalore, Karnataka, India Java Enterpris
Banalore, Karnataka, India Chennai, Tamil Nadu, India
Software Engineer (Intern)
Amazon ADP Accenture:India
Android Developer Developer Cor
Android Developer Technology Consulting
Mumbai, Maharashtra, India
Ahmedabad, Gujarat, India Banalore, Karnataka, India Wipro Limited
Znapin
CashLite HP Java Develope
Software QA Engineer
Software Engineer Executive HP ­ 
Banalore, Karnataka, India
India India Java Develope
Visa
Adobe India NCR
IQ Software Serv
Software Development Engineer
Software Engineer­Intern Financial Analyst Java Develope
Banalore, Karnataka, India
India Mumbai, Maharashtra, India
Amazon URS systems Pv
Interactive Intelligence WNS Global Services Pvt Ltd
Java Android D
POST A JOB >
POST A JOB > POST A JOB > Telesoft Labs Pv

POWERED BY JOBTHREAD
POWERED BY JOBTHREAD
POWERED BY JOBTHREAD
Java Develope
PROLIM
Java Develope
Hayagriva Busine
Karnataka
1 2 3
Collection Interview Questions for
Java Developers Java Concurrency Design Pattern in Java : Part 1 What:
Java util.collections is one of the Java Concurrency interview question ­ In 'Java investment bank interview'
Java Memory Management most important package in java and year 2004 when technology gurus said generally contains 'Java Design Find Jobs
We are covering here ­'Java innovation in Java is gone down and Sun Pattern' questions. If you want to be

http://javadecodedquestions.blogspot.in/2014/01/unix­commands­top­10­frequently­asked.html 2/4
8/31/2015 java.interview.preparation: Unix commands : Top 10 frequently asked interview questions
garbage collection interview the important of this package can Microsystems [Now Or... a professional Java ...
questions' or 'Java memory be understand by...
interview questions' in d...

Posted by Java Interview Questions  Recommend this on Google

5 comments:
GeekDude 15 February 2014 at 23:47

Nice questions..This might be useful questions to you ...164 Core Java Interview Questions.

Reply

Ramya k 8 July 2014 at 05:07

Excellent all questions are very use full and important one Thank you.

Reply

Editor 26 January 2015 at 08:17

Thank you for this Information !! 

LINUX INTERVIEW QUESTIONS 

Linux FTP vsftpd Interview Questions

SSH Interview Questions

Apache Interview Questions

Nagios Interview questions

IPTABLES Interview Questions

Ldap Server Interview Questions

LVM Interview questions

Sendmail Server Interview Questions

Read more at Linux Troubleshooting

Reply

vivek vats 30 April 2015 at 03:53

admit card 2015, 
Exams Result
Answer Key
Question Papers
Syllabus
admit card
Naukri
government jobs

Reply

vivek vats 8 August 2015 at 03:56

Nice posts. 

Sarkari Result

Reply

http://javadecodedquestions.blogspot.in/2014/01/unix­commands­top­10­frequently­asked.html 3/4
8/31/2015 java.interview.preparation: Unix commands : Top 10 frequently asked interview questions

Enter your comment...

Comment as:  Google Account

Publish
  Preview

Newer Post Home Older Post

Subscribe to: Post Comments (Atom)

GOOGLE ANALYTICS

Picture Window template. Template images by Bim. Powered by Blogger.

http://javadecodedquestions.blogspot.in/2014/01/unix­commands­top­10­frequently­asked.html 4/4

Das könnte Ihnen auch gefallen