LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-30-2011, 12:23 PM   #1
mansour
Member
 
Registered: Nov 2010
Location: Toronto, Canada
Distribution: Ubuntu 10.04 Lucid Lynx - Ubuntu 10.10 notebook - Debian 5.08 - Win XP
Posts: 172

Rep: Reputation: 2
Some linux questions I would to ask everyone here


Hi everyone:


These are a few of questions in a Unix exam I had recently.
I am curious to know the answers.


Code:
1)   A listing of inodes are unique in different ..............
 
1) File systems
 
2) Partitions
 
3)  Files
 
4)  don't remember
 
 

2)   When you remove all the ............ system considers the file removed. 
 
1) Hard links
 
2) Soft links
 
3)  Files
 
4)  don't remember

 
 
3)   What is the command to compile a file script in shell.
 
1) gcc
 
2) don't remember
 
3) vi
 
4)  don't remember

 
 
4)   which one of these are not an editor in unix?
 
1) Nano 
 
2)  Pico
 
3)  Vi
 
4) none of the above
 
 
 
5) When you don't partition a disk in Unix, by default Unix 
creates all the directories under.......
 
1) / root
 
2) / etc
 
3)  / home
 
4)  none of the above
 
 
5)  ps command  is used to find out which processes are 
currently running.
 
True
 
or 
 
False
 
 
 
 
6)  To bring a background process to the foreground, fg command 
is used with the process ID of the process.
 
True
 
or
 
False 
 
 
 
7)  Which one of these are a windows based file system.
 
1)  Ext2
 
2) NTFS 
 
3) Ext3
 
4)  FAT
 
 
 
8)  Which one of these is not an operating system?
 
1)  Windows
 
2)  DOS
 
3)  Unix
 
4) None of the above
 
 
9)  if  [ -f    /bin/ls ];  then echo " I found it"
is a valid path for
 
 
 
1)  Directory
 
2)  File
 
3) File system
 
4)  don't remember

Thank you

mansour

Last edited by mansour; 04-30-2011 at 12:30 PM.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 04-30-2011, 01:00 PM   #2
Hevithan
Member
 
Registered: Apr 2011
Location: Washington State
Distribution: Zorin5-(Ubuntu 11.04) // Backtrack 5-(Ubuntu 10.04) // Dreamlinux 3.5-(Debian)
Posts: 275
Blog Entries: 5

Rep: Reputation: 40
Are you asking people on a forum to take your exam for you -or- are these questions from you exam you have an interest in have further information on?
 
Old 04-30-2011, 01:13 PM   #3
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
A google search will answer all your questions.

Kind regards
 
Old 04-30-2011, 02:01 PM   #4
mansour
Member
 
Registered: Nov 2010
Location: Toronto, Canada
Distribution: Ubuntu 10.04 Lucid Lynx - Ubuntu 10.10 notebook - Debian 5.08 - Win XP
Posts: 172

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by Hevithan View Post
Are you asking people on a forum to take your exam for you -or- are these questions from you exam you have an interest in have further information on?


No, This is the exam I already took, but not sure of the answers, and will never know the answers, since the course is over.


mansour

Last edited by mansour; 04-30-2011 at 02:08 PM.
 
Old 04-30-2011, 02:02 PM   #5
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
No, This is the exam I already have done, but not gotten the answers yet, and will never know the answers, since the course is over.
Well, you should find the answers in your books, no?

Kind regards
 
Old 04-30-2011, 02:06 PM   #6
mansour
Member
 
Registered: Nov 2010
Location: Toronto, Canada
Distribution: Ubuntu 10.04 Lucid Lynx - Ubuntu 10.10 notebook - Debian 5.08 - Win XP
Posts: 172

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by repo View Post
A google search will answer all your questions.

Kind regards

Actually I did search google, and I got some info but no definitive answer on most.
Googling any linux questions, would often return a page from this forum as well.
I thought this forum is the best place to get the answer to these questions.
Google isn't what some people believe, at least my experience shows me so.
It is sometimes useful and a lot of times not so useful.


mansour
 
Old 04-30-2011, 02:09 PM   #7
Arcane
Member
 
Registered: May 2006
Location: Latvia, Europe
Distribution: random
Posts: 310

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Quote:
Originally Posted by mansour View Post
No, This is the exam I already have done, but not gotten the answers yet, and will never know the answers, since the course is over.{...}
Sorry but..
a)It's hard to believe exam is over or that teacher won't help with discussing answers after exam..and you mentioned exam is over then teachers|schoolmates don't have problem sharing answers.
b)Not hard exam..just need small research and common sence.
Good luck with exam.
 
Old 04-30-2011, 02:13 PM   #8
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
#4 should be very easily be answered by Google. By searching "vi", "Pico", and "nano", you would quickly find out that they are all Unix editors.
 
Old 04-30-2011, 02:15 PM   #9
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
How come "3) What is the command to compile a file script in shell." has two "don't remember" answer options and what does the question mean anyway?

Regards "2) When you remove all the ............ system considers the file removed", the system doesn't "consider" -- it follows definitive algorithms. If the question should have been "when is the file removed" then "removed" needs clarifying. If it means "when is its data freed in the file system" then none of the answers are correct.
 
Old 04-30-2011, 02:19 PM   #10
mansour
Member
 
Registered: Nov 2010
Location: Toronto, Canada
Distribution: Ubuntu 10.04 Lucid Lynx - Ubuntu 10.10 notebook - Debian 5.08 - Win XP
Posts: 172

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by repo View Post
Well, you should find the answers in your books, no?

Kind regards

Well some of them, I am not sure are even correct.


like:


6) To bring a background process to the foreground, fg command
is used with the process ID of the process.

True

or

False

The answer here could be both true and false.

You could bring it to the foreground with fg and grep as my boss said to me.
But you couldn't bring to the foreground by fg alone + process ID. unless you use, jobs command first.

script & (run a script in the background)

jobs -l ( get its jobs ID )

then fg %jobs ID ( bring it to the foreground )




7) Which one of these are a windows based file system.

1) Ext2

2) NTFS

3) Ext3

4) FAT


Here there are two correct answers. Both Fat and NTFS are windows based file systems

Last edited by mansour; 04-30-2011 at 02:20 PM.
 
Old 04-30-2011, 02:30 PM   #11
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by mansour View Post
6) To bring a background process to the foreground, fg command
is used with the process ID of the process.

True

or

False

The answer here could be both true and false.
fg without arguments brings the the shell's notion of the current job is into the foreground.

The more course questions we see posted on LQ by students, the more dubious becomes the quality of teachers.
 
Old 05-01-2011, 02:22 AM   #12
singhjc
Member
 
Registered: Nov 2010
Location: Moradabad
Distribution: Redhat,Centos
Posts: 31

Rep: Reputation: 1
1:- 1) A listing of inodes are unique in different ..............

1) File systems

2) Partitions

3) Files

4) don't remember

here above three answers are correct ( file systems, Partitions,Files)

you could check by ls -i for checking inodes
 
Old 05-01-2011, 02:48 AM   #13
spankbot
Member
 
Registered: Aug 2007
Posts: 133

Rep: Reputation: 16
1) The person who wrote this test needs to go back to school.

a) True _x_

b) False ___
 
Old 05-01-2011, 08:41 AM   #14
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

@OP; Remember that 'man command' is always available to you.

You could <Linux> - Google Search most of the questions that are presented by using good keywords or look some of the links below. These links will aid you to gaining some understanding but YOU will need to work for it;



1 Linux Documentation Project
2 Rute Tutorial & Exposition
3 Linux Command Guide
4 Bash Beginners Guide
5 Bash Reference Manual
6 Advanced Bash-Scripting Guide
7 Linux Newbie Admin Guide
8 LinuxSelfHelp
9 Utimate Linux Newbie Guide
10 Linux Home Networking
11 Virtualiation- Top 10

The above links and others can be found at 'Slackware-Links'. More than just SlackwareŽ links!
 
2 members found this post helpful.
Old 05-01-2011, 09:18 AM   #15
Fred Caro
Senior Member
 
Registered: May 2007
Posts: 1,007

Rep: Reputation: 167Reputation: 167
unix exam

What 'unix' exam was undertaken? Was it for Unix or GNU/Linux? I would associate Vi with Unix but not nano but maybe that is just historical?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Questions and answer on Linux/Fedora and Red Hat Enterprise Linux, 5th Ed. msbernice Linux - Newbie 7 07-21-2010 06:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration