What are the general Commands in using Unix OS for a
beginner? how many commands you know in that?

Answers were Sorted based on User's Feedback



What are the general Commands in using Unix OS for a beginner? how many commands you know in that?..

Answer / appu

cat command:used to create and displaying the information
present in the files.
Syntax for file creation: cat>(filename)
Syntax for displaying information in those file: cat
(filename)
Syntax for Appending data in that files: cat>>(filename)
ls command: to list the files present in the system.
ls :will list all the files present in that directory.
ls -l:for long listing of the files.
ls -a:to view hidden files.
ls -ld:to get the permission for the current directory.
ls -ltr:to get the latest file in the directory.
man command:to know more information about the cmds.
Syntax:man <cmd>
eg:man ls
touch: is also used to create the multiple empty files at a
time.
Syntax:touch f{1..10}:creates 10 empty files with names
f1,...f10.
pwd:is used to know present working directory.
cd f1 :to changed to the directory f1.
mkdir <direcoty name>:to create new directory.
rmdir <directory name>:to remove directory when it is empty
only.
rm <filename>:to remove the files.
rm -r <direcotry name>:to remove the files in that
directory recursively.
rm -f <directoryname>:to remove the files in that directory
forcebily.
cp <source> <destination>: to copy the contents of one file
to another
cp -rR <s> <d>:will copy the contents of one directory to
another.
mv <s> <d>:will move the contents of one file to another.
ls -l|grep ^d:toget the list of directories.
ls -i|grep ^_:to get the list of files.

Is This Answer Correct ?    17 Yes 0 No

What are the general Commands in using Unix OS for a beginner? how many commands you know in that?..

Answer / swetha

cat command:used to create and displaying the information
present in the files.
Syntax for file creation: cat>(filename)
Syntax for displaying information in those file: cat
(filename)
Syntax for Appending data in that files: cat>>(filename)
ls command: to list the files present in the system.
ls :will list all the files present in that directory.
ls -l:for long listing of the files.
ls -a:to view hidden files.
ls -ld:to get the permission for the current directory.
ls -ltr:to get the latest file in the directory.
man command:to know more information about the cmds.
Syntax:man <cmd>
eg:man ls
touch: is also used to create the multiple empty files at a
time.
Syntax:touch f{1..10}:creates 10 empty files with names
f1,...f10.
pwd:is used to know present working directory.
cd f1 :to changed to the directory f1.
mkdir <direcoty name>:to create new directory.
rmdir <directory name>:to remove directory when it is empty
only.
rm <filename>:to remove the files.
rm -r <direcotry name>:to remove the files in that
directory recursively.
rm -f <directoryname>:to remove the files in that directory
forcebily.
cp <source> <destination>: to copy the contents of one file
to another
cp -rR <s> <d>:will copy the contents of one directory to
another.
mv <s> <d>:will move the contents of one file to another.
ls -l|grep ^d:toget the list of directories.
ls -i|grep ^_:to get the list of files.
clear-used to clear the screen

Is This Answer Correct ?    4 Yes 1 No

Post New Answer

More Unix General Interview Questions

What is a "parameter card" and what is useful for?

1 Answers   Accenture,


How zip the file in unix?

0 Answers  


What are the core concepts of unix

0 Answers  


What is a unix file?

0 Answers  


Which mode executes the fault handler?

0 Answers  






How do I show only directories in unix?

0 Answers  


What is difference between SSH V1 and SSH V2? What are drawbacks of SSH V2?

1 Answers   Wipro,


What is procedure to configure Mirror rootvg in HP-UX?

2 Answers   IBM, Microsoft,


Who owns the unix trademark today?

0 Answers  


What are the devices represented in unix?

0 Answers  


Differentiate swapping and paging.

0 Answers  


Difference between the fork() and vfork() system call?

0 Answers  


Categories