answersLogoWhite

0


Best Answer

mkdir directoryname

mkdir "directory name with spaces"

User Avatar

Wiki User

12y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

11y ago

mkdir -p foo/bar

will make directory foo and its sub directory bar

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are some commands to make a sub directory in Linux?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Can you install active directory in Linux server?

Most Linux distributions come with several PAM authentication modules, including modules that support authentication to an LDAP directory and authentication using Kerberos. You can use these modules to authenticate to Active Directory, but there are some significant limitations.


What is the command to verify your source directory exists?

There are several ways to verify a directory. You could use the following test in a shell script: if [ -d some-directory ]; then # directory exists else # directory does not exist fi of use commands such as 'ls 'to see if it exists.


What do you mean by Commands in Linux environment?

Linux commands are commands entered into a Linux terminal (command line interface) and it performs accordingly. For example: if you entered 'pwd' into the terminal prompt and pressed ENTER it would return the current working directory be it /home or /etc'ls' will list all files and directories the specified directory. If no directory is given, the current one will be used as default.the best way to learn Linux commands is to try them out for yourself which you can via installing Linux or downloading a live Linux CD, booting into it and type in different commands (as a normal, non-root user -- root has all kinds of super-duper powers and can break things easily).AnswerIn fact, the 'commands' are programs. They can be stored in different directories, usually: /bin/usr/bin/usr/sbinFor example, when you type 'date' into a command line, the program /bin/date is launched. Programs in Linux don't usually have .exe in name. This program prints current date on users screen.Answerusually /usr/sbin/usr/binjust type:which commandat the prompt where command is what you are searching for and the Linux style computer will tell you.i.e. :%which CDreturns:CD: /usr/bin/CD /usr/share/man/man1/CD.1.gzso it says that the command CD is at /usr/bin and the manual is at /usr/share/man/man1.There are many different commands available in Linux. Some of the most basic are:ls - lists the contents of a directorydir - same as above but with escaped spacesmv - move a filerm - delete a file (semi-permanent)cat - reads a fileless - used to pipe lengthy output from a command so that it can be scrolled through. Use like ls | less.cp - copy files. cp file1 file1copygrep - search for text in a file. Can also be used to search for words in a command output. Example: ls | grep partoffilename


What directory on the filesystem doesn't actually have files on the hard drive?

For Linux and some Unix systems, the /proc system is not on the hard drive.


Why in Linux would there already be existing files or directories in my home directory?

Linux system is like a hotel apartment in which root or admin user is the manager of the hotel and every other user is a guest in the hotel which has some rooms and access to different part of the hotel based on their privileges every user have some rooms in their apartment. so in their home (directory) there is some predefined rooms (directories) for what they might need !


What is GNU in operating system?

GNU is a Free Software project which is essential to the Linux operating system. It is a project that provides and distributes a lot of the software which is essential to making a fully-functional operating system distribution based upon the Linux kernel. For example, the Linux tools/commands that allow you to enter and run commands, copy files from one directory to another, compress and uncompress files, search for strings within text files, and mount and unmount filesystems are all GNU-provided tools. In short, GNU is a project which provides a major portion of the base Linux operating system - besides Linux itself which is the kernel and is provided by a separate project. It does not however provide the entire rest of the operating system; primarily just the type of basic tools mentioned above (although a very lot of them). Some GNU software has also been ported to run on other operating systems also. Some people refer to the Linux operating system as GNU/Linux to reflect the major contribution which GNU provides to that operating system.


Cmd commands in Linux 5.0 like lsmkdircat etc?

There are many different commands available in Linux. Some of the most basic are:* ls - lists the contents of a directory * dir - same as above but with escaped spaces * mv - move a file * rm - delete a file (semi-permanent) * cat - reads a file * less - used to pipe lengthy output from a command so that it can be scrolled through. Use like ls | less. * cp - copy files. cp file1 file1copy* grep - search for text in a file. Can also be used to search for words in a command output. Example: ls | grep partoffilename


What are some examples of do?

Some very basic examples of DOS commands include the "cd" command, which allows a user to change to a specific directory. Another command is the "ping" command which sends an internet signal to a location.


What does the command r 12 accomplish on Linux?

"r" is not a standard command on Linux systems. Some systems may included or provide support for the R programming language, in which case the command would launch the "littler" program to run R commands included in the file 12.


Where the root directory should be located in LINUX?

In some operating systems, such as Microsoft Windows systems, there is no single root directory. Rather, there is a separate root directory for each Storage device and partition (i.e., logically independent section) of the hard disk drive HDD. A: for the floppy drive C: for 1st partitionThe root directory is on UNIX OS that contains all other directories and files on the system and which is designated by a forward slash ( / ) on HDD


What is the difference between a normal user and a root user in Linux?

A "root" user has the power to do anything on a Linux system. A "normal user" will be assigned some of these capabilities based on what group they are in, but is generally prevented from running any commands that may affect the system outside of their home directory. Users can be granted "sudo" rights, which allows them to run the sudo command and temporarily be granted root privileges.


What are some commands in GW-BASIC?

Some commands are Save, Load, Auto etc.