To list the subdirectories in the current directory:
find . -maxdepth 1 -type d
To list the subdirectories and all their subdirectories:
find . -type d
The command ls / will list the contents of the root directory; most items will be directories or links. If you want to see only directories, ls -l / | grep ^d will give a "long" list (including information other than the directory name) but limited to those lines beginning with a "d", indicating a directory. The output of this pipeline can be piped to the awk utility to select only the last word of each line, which will be the directory name; alternatively the output can be redirected to a text file which you can then edit: ls -l / ] grep ^d > textfilename Another approach would be to use the find command to search / for entries of type d, with search depth limited to 1.
dir Lists all files and directories in the directory that you are currently in. dir /ad List only the directories in the current directory. If you need to move into one of the directories listed use the CD command. dir /s Lists the files in the directory that you are in and all sub directories after that directory, if you are at root "C:\>" and type this command this will list to you every file and directory on the C: drive of the computer. dir /p If the directory has a lot of files and you cannot read all the files as they scroll by, you can use this command and it will display all files one page at a time. dir /w If you don't need the info on the date / time and other information on the files, you can use this command to list just the files and directories going horizontally, taking as little as space needed. dir /s /w /p This would list all the files and directories in the current directory and the sub directories after that, in wide format and one page at a time. dir /on List the files in alphabetical order by the names of the files. dir /o-n List the files in reverse alphabetical order by the names of the files. dir \ /s |find "i" |more A nice command to list all directories on the hard drive, one screen page at a time, and see the number of files in each directory and the amount of space each occupies. dir > myfile.txt Takes the output of dir and re-routes it to the file myfile.txt instead of outputting it to the screen.
AFAIK there's only one command to delete a directory. "rmdir" Removes the directory. If you only want to delete the content of the directory you can use "del <dir name>"
False. It is used to remove directories, that contain no files, subdirectories, and it cannot be the current directory. Source: CompTIA A+ Guide to Managing & Maintaing your PC, 6e. Page 641
You will need a web site to list your business name. This can be either a web site you create or you can list yourself with an industry directory site online in your specific niche and be able to list it there. Yahoo has a local business directory that allows you to build your own mini business site if you already don't have one. If you list your business in directories only, you don't have to worry about submitting anything to the search engines. If you have your own business site, you will either want to place your link to other related sites such as an industry directories or submit your site by hand to Google and Yahoo.
Just search online colleges and universities directories to get a list of online schools. Well-known directories usually only get the real online schools on their list. However, the responsibility still falls on yourself. Those directory websites also teach you how to determine which schools are real and which ones are not. Do some research to make sure the online schools that you are interested in are really accredited schools.
== == In a programming context, one usually determines whether a file is a directory using functions that access file metadata. These are dependent on the system you are programming and what language you are programming in. You should consult a reliable reference for the programming language, such as the manpages for C and C++ (in Unix-like systems) or Java's Javadocs (available on the web). To list all files in a directory, a programmer will usually iterate across all members of the directory and print some form of information found in the file metadata, such as the filename. ---- A parent directory is the directory containing the current directory. A child directory is a directory inside of the current directory. A subdirectory is a directory inside of the current directory or any its child directories. ---- In Windows, the most common way to determine if a file is a directory is using the GUI. To do this, right-click the file icon and click "Properites". If it is a directory, then the type of the file should be listed as "File Folder". Alternately, you can use the Command Prompt, which by default (Windows XP) can be accessed via the Start menu, in the Applications folder. Alternately, type "cmd" into the Run prompt (or the search field in Vista). You will be presented with a command line interface. Use the command "CD" followed by a file path to change to the desired directory, then type "DIR /A:D". This will list all files in the current directory with the attribute "directory". Alternately, you can include a path to the DIR command, such as "DIR /A:D C:\WINDOWS", to display the contents of the directory in the path. To list all files in subfolders, use the command "DIR /S". The /S flag will cause subdirectories to be printed as well. Usage of "ls" is explained in full in the manpages, try invoking "man ls" on your system for more information. In Windows systems using the NTFS filesystem, drives are mounted as separate entities and the root folder of a drive is the drive letter, followed by a colon and a backslash (i.e. "C:"). ---- In Unix-like systems, the most common utility is the command "ls". Remember that such systems are case-sensitive, so capitalization matters. To use it, open up a shell emulator, such as bash or csh, and type "cd" followed by a path to change to that directory (or include a desired path to the subsequent commands). Type "ls" to see a listing of all files in the current directory, or "ls /bin" to see a listing of all files in the directory "/bin". By adding in the arguments "l" and "a", as in the command "ls -la", you can additionally see the file permissions (starting with a 'd' if they are a directory), and the "." and ".." directories, respectively. To display the files in all subdirectories, add the argument 'R' to your list of arguments (or just do "ls -R" if you don't require more extensive information). Usage of "ls" is explained in full in the manpages, try invoking "man ls" on your system for more information. If you are using the bash shell, you can use pipes ('|') to chain together several programs to do such things as search or sort your results from the previous program. For example, "ls -l | grep foo" would first list the contents of the current directory (ls), then search through them and print out only those containing the string "foo" (grep). In most of these systems, storage devices are mounted to mountpoints, which are treated as directories within the system's directory tree. The root directory is "/". Every directory has a link to itself (".") and a link to the parent directory (".."). The root directory is special in that ".." also links back to the root directory.
Read-Only
These two directories are used for different purposes. The /tmp file system is for creating/using temporary files and directories and may be cleaned as a result of a reboot. Scratch files created by utilities and compilers are placed here, and the directory is readable and writable by anyone. The /etc directory is only writeable by an administrator, and contains most of the system configuration file information in multiple directories and files.
Yes, a hard drive can only have one single root directory, which serves as the top-level directory in the file system hierarchy. All other directories and files are organized beneath this root directory. However, within the root directory, multiple subdirectories can exist, allowing for a structured organization of files. This structure is common in file systems like NTFS, FAT32, and others.
You can only save a file to the root directory of a system (in Unix) if you have permission to do so, and most users do not have this permission. Also, it is unnecessary (and a bad idea) to save files to the root directory; usually only other directories are placed here. Having said that, it depends on the program you are running, in terms of saving to the root directory.
Windows only knows its .dll's when it needs them. com dll's are indeed registered by storing the clsid/dll info in the registry under HKEY_CLASSES_ROOT. Non-com dll's can just be copied to an arbitrary place on the system, and Windows searches for the files in the following sequence While a program/application is running: - The directory from which the application loaded. - The current directory. - 32-bit Windows system directory. - The Windows directory. - The directories that are listed in the PATH environment variable.