On 2/21/08, dinesh jadhav <[EMAIL PROTECTED]> wrote:
Okay, lets continue....
> 75.
> Which directory is closer to the top of the file system tree, parent
> directory or current directory?
current directory.
> 76.
> Given the following pathname:
>
> $ /business/acctg/payable/supplier/april
> a) If you were in the directory called acctg, what would be the relative
> pathname name for the file called april?
payable/supplier/april
> b) What would be the absolute pathname for april?
/business/acctg/payable/supplier/april
> 77.
> Suppose your directory had the following files:
> help. 1 help.2 help.3 help.4 help.O1 help.O2 aid.O1 aid.O2 aid.O3 back. 1
> back.2 back.3
> a) What is the command to list all files ending in 2?
ls *2
(will ls 2$ work?)
> b) What is the command to list all files starting in aid?
ls aid*
> c) What is the command to list all "help" files with one character extension?
ls help.?
> 78.
> What are two subtle differences in using the more and the pg commands?
space and enter keys.
> 79.
> When is it better to use the more command rather than cat command?
big file, use more.
> 80.
> What are two functions the move mv command can carry out?
move and rename.
> 81.
> Name two methods you could use to rename a file.
mv, and cp to the same directory.
> 82.
> The soccer league consists of boy and girl teams. The boy file names begin
> with B, the girl teams begin with G. All of these files are in one directory
> called "soccer", which is your current directory:
> Bteam.abc Bteam.OOl Bteam.OO2 Bteam.OO4
> Gteam.win Gteam.OOl Gteam.OO2 Gteam.OO3
> Write the commands to do the following:
>
> a) rename the file Bteam.abc to Bteam.OO3.
mv B*.a* Bteam.OO3
> b) erase the file Gteam. win after you have viewed the contents of the file
> Gteam.win
> c) make a directory for the boy team files called "boys", and one for the
> girl team files called" girls"
mkdir boys girls
> d) move all the boy teams into the "boys" directory
mv B* boys/
> e) move all the girl teams into the "girls" directory
mv G* girls/
> f) make a new file called Gteam.OO4 that is identical to Gteam.OOl
cp Gteam.OO4 Gteam.OO1
> g) make a new file called Gteam.OO5 that is identical to Bteam.OO2
similar to above.
> 83.
> Draw a picture of the final directory structure for the "soccer" directory,
> showing all the files and directories.
tree soccer
> 84.
> What metacharacter is used to do the following:
> 1.1 Move up one level higher in the directory tree structure
cd ..
> 1.2 Specify all the files ending in .txt
*.txt
> 1.3 Specify one character
the question mark (?)
> 1.4 Redirect input from a file
right arrow (>)
> 1.5 Redirect the output and append it to a file
Two right arrows (>>)
> 85.
> Which of the quoting or escape characters allows the dollar sign ($) to
> retain its special meaning?
backslash (\)
> 86.
> What is a faster way to do the same command?
> mv fileO.txt newdir
mv *O.* newdir/
> mv filel.txt newdir
> mv file2.txt newdir
> mv file3.txt newdir
similar to above.
> 87.
> List two ways to create a new file:
cat filename <<EOF
blah blah
EOF
touch filename
Else, use vi.
> 88.
> What is the difference between > and >> operators?
discussed above.
> 89.
> Write the command to do the following:
> 1 Redirect the output from the directory listing to a printer.
ls > /dev/lpp (or something like that)
> 2 Add the file efg.txt to the end of the file abc.txt.
>>
> 3 The file testdata feeds information into the file called program
program < testdata
(depends on the way the program is coded)
> 4 Observe the contents of the file called xyz.txt using MORE.
more xyx.txt
> 5 Observe a directory listing that is fo
??
> 90.
> How do you estimate file space usage?
discussed
> 91.
> How can you see all mounted drives?
mount
> 92.
> How can you find a path to the file in the system?
which filename
> 93.
> What Linux HotKeys do you know?
many.
> 94.
> What can you tell about the tar Command?
archvies files.
> 95.
> What types of files you know?
named pipes, sockets, etc.
> 96.
> How to copy files from on PC to another on the same network?
scp
> 97.
> Please describe information below:
>
> -rw-rw-r-- 1 dotpc dotpc 102 Jul 18 2003 file.buf
> drwxr-xr-x 9 dotpc dotpc 4096 Oct 21 09:34 bin
> lrwxrwxrwx 1 dotpc dotpc 20 Mar 21 15:00 client -> client-2.9.5
> drwxrwxr-x 11 dotpc dotpc 4096 Sep 2 2005 client-2.8.9
> drwxrwxr-x 7 dotpc dotpc 4096 Dec 14 12:13 data
> drwxr-xr-x 12 dotpc dotpc 4096 Oct 21 09:41 docs
> drwxr-xr-x 5 dotpc dotpc 4096 Dec 7 14:22 etc
> drwxr-xr-x 11 dotpc dotpc 4096 Mar 21 15:54 client-2.9.5
> -rw-r--r-- 1 dotpc dotpc 644836 Mar 22 09:53 client-2.9.5.tar.gz
ls -al , ls -l | grep ^d, etcetc.
> 98.
> If you would like to run two commands in sequence what operators you can use?
command1 && command2 ( or || or simply the semicolon ;)
> 99.
> How you will uncompress the file?
how is it compressed?
> 100.
> How do you execute a program or script, my_script in your current directory?
./scriptname (provided it is executable, else use the interpreter directly)
> 101.
> How to find current time configuration in the file my_new.cfg?
stat filename (linux)
istat filename (AIX)
> 102.
> What does grep() stand for?
dont know
> 103
> • What does the top command display?
top 10 processes (or is it 15?) + lots of other things.
> 104
> • How can you find configuration on linux?
dmesg. But there is no one command like lsconf (AIX) or prtconf(solaris).
> 105
> • How to find difference in two configuration files on the same server?
diff
> 106
> What is the best way to see the end of a logfile.log file?
tail -f
If I have made any mistakes, please let me know.
Regards,
--
Nadeem M. Khan | Oracle Database Administrator | Fujitsu Services UAE
| +971-55-9165773
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/linuxvadapav/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/linuxvadapav/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/