[{"id":4972,"title":"How do Start, Stop, and Restart Nginx?","link":"https:\/\/arzhost.com\/blogs\/start-stop-restart-nginx\/","content":"A strong server program called Nginx is used to direct network traffic. Although it may be set up as an average web server, it is frequently used as a reverse proxy server. How do Start, Stop, and Restart Nginx? Web server is one of the most frequent procedures you will experience.\r\n\r\nLearn How to Start, Stop, and Restart Nginx? service in this lesson:\r\n\r\n \tA machine with Nginx installed and set up\r\n \tAccess to a command line or terminal window\r\n \tA user account with root or sudo access\r\n \tIf operating remotely, an active SSH connection to a distant system\r\n\r\n\r\nUsing systemctl, start, stop, and restart Nginx\r\nHow to Check Your Nginx Server's Status? On your server, Nginx is active as a service. This means that even if nothing is visible on the screen, it should be running actively in the background. Enter the following command in a terminal window to view the Nginx service's status:\r\n\r\n \tsystemctl status nginx with sudo\r\n\r\nThe system will enter a status mode and present a wealth of data regarding the Nginx service.\r\n\r\n \tThe third line will display a green active (running) status if the service is active.\r\n \tNginx will appear inactive in plain white if it is not running.\r\n \tYou will notice a red status failed along with additional information if Nginx was unable to load due to an error.\r\n\r\nTo bring up the bash prompt once more, press q.\r\n\r\n\r\n\r\nOn contemporary Linux distributions (Ubuntu 20.04\/18.04. \/16.04, CentOS 7\/7, and Debian 9\/10), SystemD is the default service manager. The systemctl command controls how the SystemD manager works.\r\n\r\nHow do Start, Stop, and Restart Nginx? A fundamental Linux command is called systemctl. As a result, it can be applied to any Linux service.\r\nTurn off and on Nginx\r\nThe Nginx service can be started and stopped using systemctl.\r\n\r\nRun the following command to terminate Nginx:\r\n\r\n \tsystemctl sudo stop nginx\r\n\r\nUse the systemctl command with the start option to start Nginx:\r\n\r\n \tsystemctl start nginx sudo\r\n\r\nHow to Start Nginx Again?\r\nRestart Nginx politely. After modifying the settings, it's best to gently reload the service while refreshing Nginx. With the new setup, new processes are started and old ones are terminated.\r\n\r\n\r\n\r\nReload the Nginx service on a Linux system by using the systemctl command. Run the command line:\r\n\r\n \tsystemctl reload nginx with sudo\r\n\r\nForce Nginx to Start Up\r\nYou can force a complete restart of Nginx to apply significant configuration changes. This restarts the entire package while forcing the shutdown of the service and all of its child processes.\r\n\r\nHow do Start, Stop, and Restart Nginx? type the upcoming command:\r\n\r\n \trestart nginx with sudo systemctl\r\n\r\nRestart vs Reload Nginx\r\nReloading new configuration files allows the Nginx server to continue operating. The server continues to run on the basis of the old configuration files if Nginx detects a syntax mistake in any of the configuration files. Restarting Nginx is riskier than reloading.\r\n\r\n\r\n\r\nRestarting the server will turn off all associated services and turn it back on. Nginx should only be restarted when making significant configuration changes, like switching ports or interfaces. All worker processes will be abruptly terminated by this command.\r\nSetup Nginx to Run Upon Boot\r\nTo activate Nginx, use the systemctl command's enable option:\r\n\r\n \tsystemctl sudo enable nginx\r\n\r\nTo disable Nginx, use the systemctl command with the disable option:\r\n\r\n \tsystemctl disable nginx sudo\r\n\r\nStart, Stop, and Reload Nginx with the Nginx Command\r\nThe Nginx command can be used to access a collection of integrated tools that Nginx has built-in for administering the service.\r\n\r\n\r\n1: Nginx Launch\r\nEnter the following to launch Nginx and associated processes:\r\n\r\n \t\/etc\/init. d\/nginx start with sudo\r\n\r\nThe following will appear in the terminal output if the command was successful:\r\n\r\n \tOutput\r\n \t[Good] Launching nginx (using systemctl): Nginx.Service\r\n\r\n2: Nginx Restart\r\nNginx and associated processes should be forcibly closed and restarted:\r\n\r\n \t\/etc\/init. d\/nginx restart with sudo\r\n\r\nHow do Start, Stop, and Restart Nginx? Use the nginx -s command as an alternative:\r\n\r\n \trestart nginx with sudo\r\n\r\n3: Nginx Stop\r\nThe Nginx service can be stopped or disabled by entering the following:\r\n\r\n \t\/etc\/init. d\/nginx stop with sudo\r\n\r\nUse the nginx stop command to terminate the Nginx service. Alternately, employ:\r\n\r\n \tnginx -s stop sudo\r\n\r\n4: Nginx Reload\r\nUse the following command to gracefully stop and restart Nginx and associated processes:\r\n\r\n \t\/etc\/init. d\/nginx reload with sudo\r\n\r\nAs an alternative, you can give Nginx direct instructions by using the nginx -s command:\r\n\r\n \tnginx -s sudo reload\r\n\r\n5: Nginx Quit\r\nUse the quit command along with the nginx -s command to force-quit the Nginx service:\r\n\r\n \tnginx -s sudo quit\r\n\r\nConclusion\r\nSeveral techniques for How do Start, Stop, and Restart Nginx? on your server have been covered in this article. When operating an Nginx web server, use these commands for the tasks that are performed most frequently.","image":"https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2023\/01\/How-do-Start-Stop-and-Restart-Nginx.jpg","category":[{"term_id":26,"name":"server","slug":"server","term_group":0,"term_taxonomy_id":26,"taxonomy":"category","description":"","parent":0,"count":231,"filter":"raw","cat_ID":26,"category_count":231,"category_description":"","cat_name":"server","category_nicename":"server","category_parent":0}]},{"id":4967,"title":"How to Create Symbolic Links in Linux?","link":"https:\/\/arzhost.com\/blogs\/how-to-create-symbolic-links-in-linux\/","content":"A file or folder is referenced via a link. In Linux, we see How to Create Symbolic Links in Linux? symbolic links are used to organize and manage files.\r\n\r\nLearn How to Create Symbolic Links in Linux? with the ln command by reading this manual.\r\n\r\n \tA Linux-running computer\r\n \tAccess to the command line or terminal window (Activities > Search > type Terminal)\r\n \tA user account with root or sudo rights (optional) (needed to access certain protected files and directories).\r\n\r\nLn Command to Create Symbolic Links\r\nOpen a terminal window and type the following command to use the ln function:\r\n\r\n \tln [-sf] [source] [destination]\r\n \tThe ln command creates a hard link by default.\r\n \tTo build a soft (symbolic) link, use the -s option.\r\n \tThe program will be forced to overwrite an existing file if the -f option is used.\r\n \tThe file or directory is linked to is its source.\r\n \tThe destination specifies where the link will be saved; if this field is left empty, the symlink will be saved in the current working directory.\r\n\r\nMake a symbolic connection, for instance, with:\r\n\r\n \ttest file.txt, link file.txt, and ln -s\r\n\r\nThis makes test file.txt the target of a symbolic link created by link file.txt.\r\n\r\nUse the ls command to see if the symbolic has been created:\r\n\r\n \tlink file.txt, ls -l\r\n\r\nCreate a Symbolic Link to Linux Directory\r\nA directory can be referred to through a symbolic link. Under Linux, the following steps must be followed:\r\n\r\n \tstock photos \/stock photos ln -s \/mnt\/external drive\r\n\r\nIn the home (\/) directory, this example creates a symbolic link with the name stock photos. The external drive's stock photos directory is the location of the link.\r\nOverwrite Symbolic Links Using Force\r\nOne possible error message is shown in the image below:\r\n\r\n\r\n\r\nThe error message informs the user that a file with the name link file.txt already exists in the destination. To make the system overwrite the destination link, use the -f option:\r\n\r\n \ttest file.txt, link file.txt, and ln -sf\r\n\r\nLink Removal or Removal\r\nThe link will no longer work if the original file is relocated, removed, or if it becomes inaccessible (for example, if a server goes offline). Use either the rm (removal) or unlink command to delete a symbolic link:\r\n\r\n \tdelete link file.txt\r\n\r\nDisconnect link file.txt\r\nHard Links vs. Soft Links\r\nA link can be made in one of two ways using the ln command:\r\n\r\n \tSoft links\r\n \tHard links\r\n\r\n1: Soft (Symbolic) Links\r\nA soft link, also known as a symbolic link or symbolic, directs users to the path or location of the original file. On the internet, it operates much like a hyperlink.\r\n\r\nHow to Create Symbolic Links in Linux? Here are some crucial features of a soft link:\r\n\r\n \tThe original data is still present even if the symbolic link file is removed.\r\n \tThe symbolic link will not operate if the original file is moved or removed.\r\n \tA file on a different file system may be referenced using a soft link.\r\n \tTo easily access a commonly used file without typing the complete location, soft links are widely utilized.\r\n\r\n2: Hard Links\r\nSeveral things occur when a file is saved to a hard drive:\r\n\r\n \tThe disc receives a physical write of the data.\r\n \tIn order to point to the location of the data, an internal reference file called inode is made.\r\n \tThe inodes data is given a filename to be used as a reference.\r\n\r\nA hard link operates by establishing a new filename that points to the original file's inode information. In actuality, it's comparable to making a copy of the file.\r\n\r\nHere are some crucial characteristics of hard links:\r\n\r\n \tOther hard links allow access to the file data even if the original file is removed.\r\n \tHard links still function even if the original file is moved.\r\n \tOnly files located in the same file system can be referenced by a hard link.\r\n \tWhen there are no harder links, both the inode and the file data are permanently erased.\r\n\r\nConclusion\r\nNow that you've learned about hard and symbolic (soft) links, you should be able to use them effectively. How to Create Symbolic Links in Linux? using the ln command, then use the ls tool to check them.","image":"https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2023\/01\/How-to-Create-Symbolic-Links-in-Linux.jpg","category":[{"term_id":31,"name":"Linux","slug":"linux","term_group":0,"term_taxonomy_id":31,"taxonomy":"category","description":"","parent":0,"count":30,"filter":"raw","cat_ID":31,"category_count":30,"category_description":"","cat_name":"Linux","category_nicename":"linux","category_parent":0}]},{"id":4960,"title":"Vagrant Beginner Tutorial \u2013 Everything a Beginner Needs to Know","link":"https:\/\/arzhost.com\/blogs\/vagrant-beginner-tutorial-everything-beginner-needs-know\/","content":"With the use of an intuitive command interface, you can construct, configure, and manage virtual machine boxes using the open-source technology known as Vagrant Beginner Tutorial. In essence, it is a layer of software that is deployed between a virtual machine (VM) and a virtualization technology (such as VirtualBox, Docker, or Hyper-V).\r\n\r\nTo make sure that everyone on the team is developing for the same configuration, it is frequently used in software development. It shares surroundings as well as code in addition to both. This makes collaborative and cooperative development possible by enabling the code from one developer to operate on the system of another.\r\n\r\nYou will learn all there is to know about managing and configuring Vagrant in this tutorial.\r\nStarting Out with Vagrant Beginner Tutorial\r\nMake sure your machine already has a virtualization solution installed before you begin. VirtualBox, VMware, Docker, Hyper-V, and customized solutions all function with Vagrant.\r\n\r\n\r\nInstallation Points\r\nInstallation 1: Open a web browser and go to Vagrant's official website to find the most recent version:\r\n\r\n \thttps:\/\/www.vagrantup.com\/downloads.html\r\n\r\nInstallation 2: A list of every supported operating system, together with a 32-bit and 64-bit package for each, will be displayed. Run the installer after downloading the correct file for your operating system.\r\n\r\nInstallation 3: To determine whether the installation was successful, there are two methods:\r\n\r\n \tYou may use either vagrant -v\r\n\r\nThis should to display the computer's current version. The most recent version is Vagrant 2.2.6.\r\n\r\nAlternatively, you might enter the following command into the terminal:\r\n\r\n \tvagrant\r\n\r\nIf the tool was installed properly, this output would display a list of frequently used commands.\r\nSetup of a Vagrant Project\r\n1: Create a directory to house your Vagrant file first:\r\n\r\n \tmkdir vagrant-test in sudo\r\n \tvagrant-test cd\r\n\r\n2: Create a straightforward Vagrant file by downloading the Ubuntu Trusty Tahr distribution from a public library and including:\r\n\r\n \tinit Ubuntu\/trusty64 with vagrant\r\n \tYou can search for and download a Vagrant box at https:\/\/app.vagrantup.com\/boxes\/search if you'd like.\r\n\r\nVagrant Beginner Tutorial installs the box to the current directory when the init command is executed. The Vagrant file can be edited or copied and stored in the same directory.\r\nVagrant Boxes \r\nA \"box\" or \"Vagrant box\" is the fundamental component of a Vagrant setup. This is a full, independent representation of an operating system environment.\r\n\r\nAn operating system base image is copied to create a Vagrant Box. Launching and provisioning are expedited by using a clone.\r\n\r\n\r\n\r\n1: You don't have to use the init command; you may just download and add a box by using the command:\r\n\r\n \tUbuntu\/trusty64 is added by the vagrant box.\r\n\r\nBy doing this, the box is downloaded and locally stored.\r\n\r\n2: The Vagrantfile must then be adjusted for the virtual box it will be serving. the Vagrantfile by using the following command:\r\n\r\n \tvagrant-file sudo vi\r\n\r\n3: After opening the Vagrantfile, change \"base\" to \"Ubuntu\/trusty64\" in the config.vm.box string.\r\n\r\n \tvm.box = \"Ubuntu\/trusty64\"\r\n\r\nTo specify a box version, add another line above the end command:\r\n\r\n \tConfiguration field: \"1.0.1\"\r\n\r\nAlternatively, you can provide a URL to connect right to the box:\r\n\r\n \t\"https:\/\/vagrantcloud.com\/Ubuntu\/trusty64\" is the value for config.vm.box url.\r\n\r\nYou can use the following to delete a box:\r\n\r\n \tRemove Ubuntu\/trusty64 with vagrant box\r\n\r\nVagrant File\r\nVagrant specifies the settings of the box using a \"Vagrantfile\" rather than creating and copying an entire operating system image.\r\nProvisioning\r\nYou might have observed that the guest OS does not come pre-loaded with many applications if you spend enough time using it.\r\n\r\nVagrant Beginner Tutorial, a bootstrap. sh file located in the same directory as the Vagrantfile allows Vagrant to handle automatic provisioning.\r\n\r\nUse the following command to add the nmon basic resource monitor to the guest OS:\r\n\r\n \tsudo vi bootstrap.sh\r\n\r\nIn that file, enter the following:\r\n\r\n \t#! \/usr\/bin\/env bash\r\n \tapt-get update\r\n \tapt-get install -y nmon\r\n \tif! [ -L \/var\/www]; then\r\n \trm -rf \/var\/www\r\n \tln -fs \/vagrant \/var\/www\r\n \tfi\r\n\r\nSave the file and exit. Next, edit the Vagrantfile and add the provisioning line. It should look as follows:\r\n\r\n \tVagrant. Configure (\"2\") do |config|\r\n \tconfig.vm.box = \"Ubuntu\/trusty64\"\r\n \tconfig.vm. provision: shell, path: \"bootstrap.sh\"\r\n \tend\r\n\r\nThe Vagrant is directed to read the bootstrap.the sh file we just produced when it reads the Vagrantfile. The package manager will be updated by the bootstrap file, and the nmon package will then be installed. You ought now be able to run nmon to see a display of the virtual machine's resources after using the vagrant up and vagrant ssh commands.\r\n\r\nYou are given a potent tool for pre-configuring your virtual environment using provisioning. With Apache2, you might accomplish the same task and build a web server for your virtual environment.\r\nProviders\r\nLearn how to utilize Vagrant Beginner Tutorial with VirtualBox in this tutorial. Vagrant may, however, also integrate with numerous additional backend service providers.\r\n\r\nRun this command to start Vagrant in VMware: \r\n\r\n \tVagrant up with the VMware Fusion provider\r\n\r\nAlternatively, you can start Vagrant with Amazon Web Services by using:\r\n\r\n \t-provider=aws vagrant up\r\n\r\nThe provider will be affected by subsequent commands once the initial command has been executed.\r\nGetting Started and Connecting\r\nVagabond Up\r\n\r\nTo start your new virtual environment, issue the following command:\r\n\r\nhomeless up\r\n\r\nThis will rapidly launch a virtual Ubuntu environment and run the applications. You won't see any output, even though the virtual machine is operating. Vagrant offers no user interface whatsoever.\r\nVagrant SSH\r\nUsing an SSH connection, you can connect to your virtual machine and confirm that it is operational:\r\n\r\n \tSSH vagrant\r\n\r\nThe new virtual machine is now accessible through a secure shell connection. Vagrant@trusty64 will appear on your command line to show that you are logged into the virtual machine.\r\n\r\n\r\n\r\nWhen you are finished examining the virtual machine, press CTRL-D to end the session. The SSH connection will be terminated, but the virtual machine will continue to run in the background.\r\n\r\nEntering: will halt the virtual machine's operation.\r\n\r\n \trogue destroy\r\n\r\nEverything that was running inside the virtual machine will be gone. But the file that you downloaded will still be there.\r\nClosed Folders\r\nContent from your project directory is automatically synchronized with a unique directory on the guest (virtual) system by vagrant. The directory you previously created, \/vagrant-test, is the project directory. The Vagrantfile is also stored on the same computer.\r\n\r\nBy default, the virtual machine starts under the \/home\/vagrant\/ directory when you log in. The identical files that are on your host system are stored in a separate directory called \/ Vagrant Beginner Tutorial\/.\r\n\r\nCreate a test document in the \/vagrant directory after launching the virtual computer and logging in with vagrant up and vagrant ssh.\r\n\r\nTo list the contents of your vagrant-test directory, run ls after using the exit command to end the SSH session. The test file you created ought to be shown.\r\n\r\nThis is a convenient alternative to using an SSH session to manage files in the guest OS.\r\nNetworking\r\nYou can connect your virtual machine to a network using Vagrant Beginner Tutorial. Use the config. vm. network command to define network settings shortly before the end command in your Vagrantfile.\r\n\r\nFor instance:\r\n\r\n \t\"Forwarded port\", config.vm. network \"80\", guest: 80, host: 8080\r\n\r\nTo apply the modifications, save and reload Vagrant using the following command:\r\n\r\n \tsquatter reload\r\n\r\nFor the guest system, this forwarded port is created. Additionally, you can specify private networks, public networks, and other more sophisticated choices.\r\nUnemployed Share\r\nUtilizing a custom URL, Vagrant Beginner Tutorial provides a useful feature that allows you to share your Vagrant environment.\r\n\r\n\r\n\r\nUse the following command once your Vagrant environment is up and running:\r\n\r\n \thomeless share\r\n\r\nAfter creating a Vagrant Share session, the system will produce a URL. You can copy this URL and send it to someone else. Anyone using this URL will be able to view your Apache configuration page if you have setup Apache in your Vagrant session. As you make changes to the information in your shared folder, this URL is updated.\r\n\r\nWith CTRL-C, you can end the sharing session. Consult the Vagrant Sharing manual for further details.\r\nClean up the stray\r\nYou have a few options for how to end the session once you have finished working on your guest system.\r\n\r\n1: Execute: to halt the machine and store its present state:\r\n\r\n \tsquatter suspend\r\n\r\nVagrant up should be run one more to continue. Similar to placing the computer in sleep mode, this.\r\n\r\n2: Use the following command to terminate the virtual machine:\r\n\r\n \thomeless halt\r\n\r\nThe same virtual machine will reboot once more, allowing you to pick up where you left off. This is very similar to turning off a typical machine.\r\n\r\n3: Type the following into your browser to erase any traces of the virtual machine from your system:\r\n\r\n \trogue destroy\r\n\r\nYou will lose any data you have saved in the virtual machine. This frees up the system resources that Vagrant was using.\r\n\r\nThe machine will need to be re-imported and re-provisioned the following time your vagrant is up. This is comparable to formatting a system's hard drive and then loading a new image.\r\nConclusion\r\nYou should be able to do the fundamental Vagrant operations by now. You might even have a virtual OS operating right now if you closely followed the instructions in this Vagrant Beginner Tutorial!","image":"https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2023\/01\/Vagrant-Beginner-Tutorial.jpg","category":[{"term_id":16,"name":"Tutorial","slug":"tutorial","term_group":0,"term_taxonomy_id":16,"taxonomy":"category","description":"","parent":0,"count":386,"filter":"raw","cat_ID":16,"category_count":386,"category_description":"","cat_name":"Tutorial","category_nicename":"tutorial","category_parent":0}]},{"id":4952,"title":"How to Use mkdir Command to Make or Create a Linux Directory?","link":"https:\/\/arzhost.com\/blogs\/use-mkdir-command-to-make-or-create-a-linux-directory\/","content":"In this guideline, we will take a look at learning How to Use the mkdir Command to Make or Create a Linux Directory? We shall examine the mkdir command, which is used to create directories, in this manual. We'll also talk about some real-world applications of it that can assist new Linux users to feel confident using the system.\r\n\r\nWe frequently use files and folders as Linux users. While directories help us to properly organize files, files allow us to store crucial data. In addition, we frequently build a hierarchical directory structure to better arrange the information.\r\n\r\nThis essay for beginners will teach you about the mkdir command. The mkdir tool, as its name implies, creates a named directory at a specified path and enables us to build single or multiple directories at once with the required file permission.\r\n\r\nThe user must have the necessary rights on the parent directory in order to use the mkdir command; otherwise, the command will fail with the permission denied error.\r\nWhat does Linux's mkdir command do?\r\nHow to Use mkdir Command to Make or Create a Linux Directory? Users can make new folders in Linux and Unix with the mkdir command. Make Directory is referred to as mkdir. In addition to creating several directories (folders) at once, mkdir also allows you to configure permissions.\r\n\r\n\r\n\r\nYou will learn how to utilize the Linux mkdir command in this article:\r\n\r\n \tUNIX- or Linux-based system.\r\n \tAccess to a command line or terminal.\r\n \tA user with the authority to add and modify directory settings.\r\n\r\nLinux Command Syntax for mkdir\r\nThe mkdir command and the directory's name make up the fundamental command for creating directories in Linux. The syntax of this command looks like this, and you can add options to it:\r\n\r\n \t\"mkdir\" [option] \"dir name\"\r\n\r\nRefer to the examples we give in the remaining sections of the guide to gain a better understanding of how to use mkdir.\r\nHow to Create a New Linux Directory?\r\nUse the mkdir command and the desired name to create a directory in the terminal.\r\n\r\n\r\n\r\nIn this illustration, we made a Linux directory on the desktop. Keep in mind that options and commands in Linux are case-sensitive.\r\n\r\n \tLinux mkdir\r\n\r\nA blank line is returned by the terminal if the procedure is successful. \u201cHow to Use mkdir Command to Make or Create a Linux Directory?\u201d Make sure by using ls.\r\nHow to Create Multiple Directories with mkdir?\r\nWith mkdir, you can create directories one at a time, but this takes time. You can create many directories simultaneously by using the mkdir command to avoid that.\r\n\r\nTo do this, specify the directory names, separated by commas, and utilize the curly brackets with mkdir:\r\n\r\n \ttest1, test2, and test3: mkdir\r\n\r\nThe directory names' curly brackets should not contain any extra spaces. If you do, the following names will also have additional characters:\r\nHow to Make Parent Directories?\r\nThe -p option must be used to mkdir in order to create a structure with numerous subdirectories. By doing this, mkdir will ensure that any parent directories that are missing are added.\r\n\r\n\r\n\r\nFor instance, run the following command to create \"dirtest2\" in \"dirtest1\" of the Linux directory (i.e., Linux\/dirtest1\/dirtest2).\r\n\r\n \tLinux\/dirtest1\/dirtest2 mkdir -p\r\n \tTo display the recursive directory tree, type ls -R.\r\n\r\nIf one of the folders in the string doesn't exist, the terminal returns an error without the -p argument.\r\nHow to Set Permissions When Making a Directory?\r\nHow to Use mkdir Command to Make or Create a Linux Directory? By default, the mkdir command only grants the current user rwx rights.\r\n\r\nWhen creating a directory, include the -m option and the user 777 to add read, write, and execute permission for all users.\r\n\r\nMake a directory named DirM with the following permissions:\r\n\r\n \tDirM mkdir -m777\r\n \tTo display the permissions sets and list all directories: -l\r\n\r\nThe highlighted directory has rwx permissions for all users. Two other directories, as seen in the image above, have rwx permissions by default for the owner, xr permissions for the group, and x permissions for other users.\r\nHow to Check Directory Listings?\r\nThere is no feedback when running the mkdir commands, even when they are successful. Add the -v option to the terminal command to view the details of the mkdir procedure.\r\n\r\n\r\n\r\nTo print the operation status, let's build a Details directory inside Dir1:\r\n\r\nYou may confirm the directory was created without using the ls command by obtaining feedback from the procedure instead of running it.\r\nmkdir Command Options and Syntax \r\nHow to Use mkdir Command to Make or Create a Linux Directory? Summary\r\n\r\n\r\n\r\nOption \/ Syntax\r\nDescription\r\n\r\n\r\nmkdir directory name\r\nCreates a directory in the current location\r\n\r\n\r\nmkdir {dir1,dir2,dir3,dir4}\r\nCreates multiple directories in the current location. Do\u00a0not\u00a0use spaces inside\u00a0{}\r\n\r\n\r\nmkdir \u2013p directory\/path\/newdir\r\nCreates a directory structure with the missing parent directories (if any)\r\n\r\n\r\nmkdir \u2013m777 directory name\r\nCreates a directory and sets full read, write, and execute permissions for all users\r\n\r\n\r\nmkdir \u2013v directory name(s)\r\nCreates a directory in the current location\r\n\r\n\r\n\r\nConclusion\r\nAll the commands required to create folders in Linux were covered in this guide. You now know how to use the mkdir command in Linux. It is uncomplicated and easy to use.\r\n\r\nIf you follow the steps in this article, there shouldn't be any errors if you have the required permissions.","image":"https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2023\/01\/How-to-Use-mkdir-Command-to-Make-or-Create-a-Linux-Directory.jpg","category":[{"term_id":31,"name":"Linux","slug":"linux","term_group":0,"term_taxonomy_id":31,"taxonomy":"category","description":"","parent":0,"count":30,"filter":"raw","cat_ID":31,"category_count":30,"category_description":"","cat_name":"Linux","category_nicename":"linux","category_parent":0}]}]