Explain The Following Commands
Explain The Following Commands
[hostname:]portno
Use the following syntax to start a session or batch on a UNIX
system:
pmcmd start {user_name | %user_env_var} {password |
%password_env_var} [hostname:]portno [folder_name:]
{session_name | batch_name} [:pf=param_file] session_flag
wait_flag
Use the following syntax to stop a session or batch on a UNIX
system:
pmcmd stop {user_name | %user_env_var} {password |
%password_env_var} [hostname:]portno[folder_name:]
{session_name | batch_name} session_flag
Use the following syntax to stop the Informatica Server on a
UNIX system:
pmcmd stopserver {user_name | %user_env_var} {password
| %password_env_var} [hostname:]portno
It reads the standard input and sends it to the standard output while
redirecting a copy of what it has read to
the file specified by the user.
4. What does the command “ $who | sort –logfile > newfile” do?
The input from a pipe can be combined with the input from a file . The
trick is to use the special symbol “-“
(a hyphen) for those commands that recognize the hyphen as std input.
In the above command the output from who becomes the std input to
sort , meanwhile sort opens the file
logfile, the contents of this file is sorted together with the output of
who (rep by the hyphen) and the sorted
output is redirected to the file newfile.
6. Which of the following commands is not a filter man , (b) cat , (c)
pg , (d) head
Ans: man
A filter is a program which can receive a flow of data from std input,
process (or filter) it and send the result
to the std output.
7. How is the command “$cat file2 “ different from “$cat >file2 and >>
redirection operators ?
After the command line is terminated by the key, the shel goes ahead
with processing the command line in
one or more passes. The sequence is well defined and assumes the
following order.
Parsing
quoted. All consecutive occurrences of a space or tab are replaced here
with a single space.
: The shell first breaks up the command line into words, using spaces
and the delimiters, unless
Cat displays file contents. If the file is large the contents scroll off the
screen before we view it. So
command 'more' is like a pager which displays the contents page by
page.
13. Write a command to kill the last background job?
Kill $!
14. Which command is used to delete all files in the current directory
and all its sub-directorories?
rm -r *
$ echo *
It is similar to 'ls' command and displays all the files in the current
directory.
ls stands for list; so it displays the list of the files that starts with
'chapter' with suffix '1' to '5', chapter1,
chapter2, and so on.
Yes, it stands for ‘disk usage’. With the help of this command you can
find the disk capacity and free space
of the disk.
‘inode’, each file has a separate inode and a unique inode number.
Raji,
Prepare the below topics for interview,
They can call any time from today.
Unix Operating System
Advantages of Unix OS
Shell
Kernel
Shell Commands
vi Editor
SSH
FTP
SCP
SFTP
Telnet
File Permissions
Users & groups
Flavors of Unix OS
Basic Commands
Different Run levels in Solaris/Linux
NFS concepts and NFS daemons
Mounting of filesystems
Windows Operating System
OS Versions
Domain Controller
Advantages of Windows OS
Active Directory
Services
User/Group/Security Policy
Windows File Sharing
User Management
Events
Filesystem
Database Concepts
Database
Table
Indexing
Database products
IBM - DB2
Oracle - Oracle
Microsoft - SQL
SQL
Networking
Introduction to Network Topologies
Network Protocols
DNS Server
Switch
Hub
Router
OSI Layers
IP address
IP Address Classes
Subnet Masking
DHCP
Physical Media in Networking