How to use FTP commands to copy file ?
What is the port Number for FTP
FTP (File Transfer Protocol) port number 21 is a reserved port in TCP/IP networking
FTP lets you download files from a remote host which is set up as an ftp-server.
This is a common method for exchanging academic papers and drafts.
ftp hostname (To connect the hostname)
get to copy one file from the remote machine to the local machine
get abc.txt copies file ABC in the current remote directory in your current local directory.
mget to copy multiple files from the remote machine to the local machine;
you are prompted for a y/n answer before transferring each file
mget *
put
mput to copy multiple files from the local machine to the remote machine;
you are prompted for a y/n answer before transferring each file
mput *
quit to exit the FTP environment (same as bye)
rmdir to to remove (delete) a directory in the current remote directory
open to open a connection with another computer
What is the difference between User ID and GUID (Group UserID)
Filed under: Shell Scripting Interview Questions, Unix Scripting Interview Questions
User ID and Group ID. They are used for a first-cut security in Unix systems, in that files and programs can be restricted to certain groups, or to certain users. Groups are kept in the /etc/group file, users and the group they belong to are kept in the /etc/passwd file.
How can you debug the process from unix shell
Shell can make your debugging process easier because it has lots of commands to perform the function. For example sh –ncommand helps you to perform debugging. It helps you to read the shell but not to execute it during the course. Similarly sh –x command helps you by displaying the arguments and functions as they are executed.
