|
Ans: ‘ls’ command is used to list all directories...
|
|
|
Ans: UNIX vs. DOS Navigation & Directory Control Commands
Comman...
|
|
|
293. What Are The File Maintenance Commands?
Date Posted: 07/01/2012
Ans: File maintenance commands are to create copy, remove & change permission on files. You can use the following commands—
Commands/syntax working of it.
-
Chgrp [options] group file change the group of file
-
Chmod [options] file change the access mode of file
-
Chown [options] owner file change the ownership of file (only super user can do it)
-
Cp [options] file1 file2 copy the content of file1 into file 2
-
Mv [options] file1 file2 move file1 into file2
-
Rm [options] file remove file or directory
|
|
|
294. What Is Difference Between UNIX & DOS File Maintenance Commands?
Date Posted: 07/01/2012
Ans:
Commands UNIX DOS
Copy file cp copy
Move file mv move
Rename file mv rename & ren
Delete file rm erase & Del
Display file to screen
Entire file cat type
one page at a time more.less.pg type/p
|
|
|
295. How Do You Rename Or Move A File In UNIX System
Date Posted: 07/01/2012
Ans: You can rename or move file with ‘mv’ command.
Syntax-
Mv [options] [old filename] [new filename]
Common Options
-i interactive (prompt and wait for confirmation before proceeding)
-f don’t prompt, even when copying over an existing target file (overrides -i)
Examples
Now you have a file called and the file is gone or deleted.
The contents of the file remain where they were
|
|
|
Ans: You can remove a file with the ‘rm’ command....
|
|
|
297. Write Command To List All The Links From A Directory?
Date Posted: 07/01/2012
Ans: In this question, the interviewer just tried to know if you know the basic use of ‘Is’ ‘grep’ and other regular expressions. You can answer like this, Is –lrt | grep “^|”.
|
|
|
298. How Can One Find Which Operating System Are You Using On Your System When UNIX Is Running?
Date Posted: 07/01/2012
Ans: We can use the command “uname -a” in UNIX.
|
|
|
299. How Can One Copy A File From One Host To Another?
Date Posted: 07/01/2012
Ans: There are many options to do that but one can use “scp” command. One can also rsync command or even sftp will be good.
|
|
|
300. How One Judge Can Is The Remote Host Is Alive Or Not?
Date Posted: 07/01/2012
Ans: One can easily check this by using the ping or telnet command in the UNIX.
|
|