answersLogoWhite

0


Best Answer

There a lot of command that could be used with recursive option in UNIX type operating systems and even Windows. For example we want to list of files and folders inside current folder but we want to list and all subfolder and even subsubfolders and etc. For this we will have to use recursive option.

Example:

Command: ls -laR

Return:

-rw-r--r--@ 1 david staff 373 Bal 26 18:13 add.sh

-rw-r--r-- 1 david staff 31 Bal 26 18:12 even.txt

drwxr-xr-x 3 david staff 102 Kov 20 18:46 ruby

drwxr-xr-x 2 david staff 68 Bal 15 07:24 C

./folder:

total 0

drwxr-xr-x 2 david staff 68 Bal 26 16:55 .

drwxr-xr-x 16 david staff 544 Bal 26 18:11 ..

./ruby:

total 8

drwxr-xr-x 3 david staff 102 Kov 20 18:46 .

drwxr-xr-x 16 david staff 544 Bal 26 18:11 ..

-rwxr-xr-x@ 1 david staff 181 Kov 20 18:59 test.rb

As you can see it not only listed files from active directory, but also listed and files from other two directories that are located in active directory.

There are many programs that allows this kind of recursion (usually it will be -R option) and some even will allow to limit the depth you want. In order to find out which commands support recursive option you need to read each command manual pages, which could be in internet or in system by writing in console: man

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is recursive behavior command in UNIX?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Expansion of GNU?

GNU is a Unix-like computer operating system developed by the GNU Project. GNU is a recursive acronym for "GNU's NOT UNIX".


What is the difference between unix command and utilities?

Utilities are programs that can run or execute. Commands are slightly different than utilities. Command refers to the name of the program and any arguments you specify to that program to change its behavior.


Write a UNIX command to display the current date in the form ddmmyyyy?

UNIX command to display the current datedate +'%d/%m/%Y'Niraj sharma


UNIX may be described as being difficult to use Why?

Traditionally, the UNIX command interface was the only way to communicate within a UNIX system. Today, that is not true, with the graphical interfaces that are available. However, the true power of what you can do within UNIX is still in the command line interface. The command line interface is not very intuitive, and uses commands that are abbreviated to the point of not necessarily being understandable. Also, system administration tasks in Unix have typically been harder to accomplish because of the amount of background knowledge necessary even to do simple things. UNIX was developed early on for programmers by programmers, and little thought was given to the end user; as a result, it had a reputation of being difficult to use until you took the time to understand the (admittedly) arcane command line interface.


How can you stop computer programmes running in the background?

In UNIX: with command kill, in Windows: from Task Manager.

Related questions

What is the use of execute command in unix?

There is no traditional 'execute' command in Unix.


Brief description of format command in unix?

There is no standard 'format' command in Unix.


What do CD command do in unix?

The 'CD' command is not standard for Unix. The 'cd' command, however, will change directories (folders). It is a means of navigating the Unix file system.


Which is the most commonly used command for referencing detailed information about a particular command in UNIX?

In Unix, use the 'man' command.


Expansion of GNU?

GNU is a Unix-like computer operating system developed by the GNU Project. GNU is a recursive acronym for "GNU's NOT UNIX".


What is the Unix command to check to see who is logged in?

The "who" command.


What is the command to get the Unix version?

cat /proc/version The above answer will only work on certain systems. For most Unix systems, use the 'uname' command to get the Unix version. AIX uses the oslevel command.


How does the strace command in Unix work?

Strace can be a valuable tool when debugging quirky behavior with running unix or Linux processes. It intercepts all signals that a process receives as well as all system calls the process makes. It can help one understand unusual or buggy behavior.


Which command is the UNIX equivalent of the windows command nslookup?

dig


Which command is the UNIX is equivalent of the windows command nslookup?

nslookup


What is the full form of G.N.U.?

GNU is a recursive acronym for "GNU's not Unix!" This name was chosen because GNU's design is Unix-like, but differs from Unix by being free software and containing no Unix code.It could also mean Gujarat National University.


Which command is the UNIX equivalent of windows command nslookup?

Believe it or not, nslookup.