

You can even set the permissions of a directory with the mkdir command. Or, you could do the same thing from outside the projects directory with a command like: mkdir ~/projects/ Then issue the command: mkdir java javascript dotNet What if you need to create a number of directories? Say you have ~/projects created and you want to create directories for Java, JavaScript, and dotNet? Change into projects with the command: cd ~/projects

The -p option stands for parents, which instructs mkdir to create the parent(s) directory (or directories) as needed. In order to make this work, you have to add the -p option as in: mkdir -p ~/project/test If you issue the command mkdir ~/project/test, you’ll see the error that test cannot be created because there’s no such file or directory named project. Say you want to create the directory test within project in your home directory, but project had yet to be created. It’s that simple, but let’s dig a bit deeper. Once you’ve logged into your server, create a directory named test in your home directory with the command: mkdir ~/test SEE: Kubernetes security guide (free PDF) (TechRepublic)

#Image viewer linux command line how to#
When that happens, you’ll be glad you know how to create a directory from the CLI.īut how do you do it? It’s actually incredibly simple. Why? Because at some point you’re going to be faced with administering a Linux server without a GUI. It is, but it’s also a skill you’re going to need to know. This time around we’re going to learn how to create a directory from the command line. Hello admins, Jack Wallen here with a Linux 101-level tip. This Linux learning path will help you start using the OS like a proītop is a much-improved take on the Linux top command
