System root folder windows

КАК: Что такое корневая папка или корневой каталог? — 2021

КАК НАЙТИ КОРНЕВУЮ ПАПКУ ИГРЫ ИЛИ ПРИЛОЖЕНИЯ (Апрель 2021).

Table of Contents:

Корневая папка, также называемая корневая директория или иногда просто корень , любого раздела или папки является «самым высоким» каталогом в иерархии. Вы можете также думать об этом как о начале или начале конкретной структуры папок.

Корневой каталог содержит все другие папки в диске или папке и может, конечно, также содержать файлы. Вы можете визуализировать это с перевернутым деревом, где корни (корневая папка) находятся наверху, а ветви (подпапки) падают ниже; корень — это то, что удерживает вместе все его нижние элементы.

Например, корневой каталог основного раздела на вашем компьютере, вероятно, C: . Корневая папка вашего DVD или CD-привода может быть D: . Корень реестра Windows — это то, где хранятся кусты, такие как HKEY_CLASSES_ROOT.

ROOT также является аббревиатурой для объектно-ориентированных технологий ROOT, но он не имеет ничего общего с корневыми папками.

Примеры корневых папок

Семестр корень также может относиться к тому месту, о котором вы говорите.

Скажем, для другого примера, что вы работаете над C: Program Files Adobe по любой причине. Если программное обеспечение, которое вы используете, или руководство по поиску и устранению неполадок, которое вы читаете, говорят вам перейти в корень папки установки Adobe, это говорит о «основной» папке, в которой хранятся все файлы Adobe, связанные с тем, что вы там делаю.

В этом примере, поскольку C: Program Files содержит множество папок для других программ, также корень папки Adobe, в частности, был бы Adobe папка. Однако корневая папка для всех файлов программы на вашем компьютере будет C: Program Files папка.

Это же относится и к любой другой папке. Вам нужно перейти в корень пользовательской папки для User1 в Windows? Это C: Users Name1 папка. Это, конечно, меняется в зависимости от того, о ком вы говорите — корневая папка Пользователь2 было бы C: Users user2 .

Доступ к корневой папке

Быстрый переход к корневой папке жесткого диска, когда вы находитесь в командной строке Windows, заключается в выполнении команды change directory (cd) следующим образом:

CD

После выполнения вы сразу же перемещаетесь из текущего рабочего каталога вплоть до корневой папки. Так, например, если вы находитесь в C: Windows System32 и затем введите команду cd с обратной косой чертой (как показано выше), вы сразу же будете перемещены с того места, где вы находитесь C: .

Аналогично, выполнение команды cd следующим образом:

CD..

… переместит каталог на одну позицию, что полезно, если вам нужно добраться до корня папки, но не от корня всего диска. Например, выполнение CD.. в то время как в C: Users Пользователь1 Downloads папка изменит текущий каталог на C: Users Пользователь1 , Выполнение этого снова приведет вас к C: Users , и так далее.

Ниже приведен пример, когда мы запускаем в папке с именем Германия на C: привод. Как вы можете видеть, выполнение этой же команды в командной строке перемещает рабочий каталог в папку непосредственно перед / над ним, вплоть до корня жесткого диска.

C: Amys-PHONE Pictures Германия> CD.. C: Amys-PHONE Pictures> CD.. C: Amys-PHONE> CD.. C: >

Читайте также:  Как сменить загрузочную картинку windows

Вы можете попытаться получить доступ к корневой папке только для того, чтобы обнаружить, что вы не видите ее при просмотре через Explorer. Это связано с тем, что некоторые папки скрыты в Windows по умолчанию. См. Раздел Как показывать скрытые файлы и папки в Windows? если вам нужна помощь в их раскрытии.

Подробнее о корневых папках и каталогах

Семестр веб-корневая пап иногда может использоваться для описания каталога, в котором хранятся все файлы, составляющие веб-сайт. Такая же концепция применяется здесь, как и на вашем локальном компьютере — файлы и папки в этой корневой папке содержат основные файлы веб-страниц, такие как файлы HTML, которые должны отображаться, когда кто-то обращается к основному URL-адресу веб-сайта.

Семестр корень здесь не следует путать с / корень папка, найденная в некоторых операционных системах Unix, где вместо домашнего каталога используется определенная учетная запись пользователя (которая иногда называется корень учетная запись). В некотором смысле, поскольку это основная папка для этого конкретного пользователя, вы можете ссылаться на нее как на корневую папку.

В некоторых операционных системах файлы могут храниться в корневом каталоге, например C: / диск в Windows, но некоторые ОС не поддерживают это.

Семестр корневая директория используется в операционной системе VMS, чтобы определить, где хранятся все файлы пользователя.

How to Locate the Root Folder for Microsoft

Although each Microsoft operating system has a suggested default root folder, a user may choose to change this location at installation. Therefore, programmers who write software and scripts to run on a Microsoft operating system have no way of knowing the exact root folder for each computer. For the software or script to run successfully on the most computers possible, programmers use environment variables. The variable for the root folder is SYSTEMROOT. Using this variable in a command line tells you where a particular instance of the Microsoft operating system is installed.

Start your computer and log in to Windows. Click the Start button to bring up a search text box.

Type “cmd” into the text field and press “Enter.” A Windows command shell window opens.

Type “echo %SYSTEMROOT%» at the command prompt and press “Enter.” The result of this search is the root folder for Microsoft Windows.

Type “exit” at the command prompt to close the command shell.

  • By default, the system root folder for Microsoft Windows is C:/Windows. However, this can be changed for several reasons. The active partition on a hard drive could be designated by a letter other than C:, or the operating system might be Windows NT, in which case the system root folder is C:/WINNT by default.
  • Although you can change the system root variable at the command line, you should never do so. It will make your operating system inoperable.

Karren Doll Tolliver holds a Bachelor of English from Mississippi University for Women and a CELTA teaching certificate from Akcent Language School in Prague. Also a photographer, she records adventures by camera, combining photos with journals in her blogs. Her latest book, «A Travel for Taste: Germany,» was published in 2015.

Folder Browser Dialog. Root Folder Свойство

Определение

Получает или задает корневую папку, с которой начинается просмотр. Gets or sets the root folder where the browsing starts from.

Значение свойства

Одно из значений перечисления Environment.SpecialFolder. One of the Environment.SpecialFolder values. Значение по умолчанию — Desktop . The default is Desktop .

Исключения

Назначенное значение не является одном из значений Environment.SpecialFolder. The value assigned is not one of the Environment.SpecialFolder values.

Примеры

В следующем примере кода создается приложение, позволяющее пользователю открывать форматированные текстовые файлы (RTF) в RichTextBox элементе управления. The following code example creates an application that enables the user to open rich text (.rtf) files within the RichTextBox control.

Читайте также:  Создание резервного образа системы windows 10

Комментарии

Только указанная папка и все вложенные в нее папки будут отображаться в диалоговом окне и доступны для выбора. Only the specified folder and any subfolders that are beneath it will appear in the dialog box and be selectable. SelectedPathСвойство вместе с RootFolder определяет, что будет выбранная папка при отображении диалогового окна, если SelectedPath является абсолютным путем, который является вложенной папкой RootFolder (или точнее, указывает на вложенную папку пространства имен оболочки, представленного параметром RootFolder ). The SelectedPath property, along with RootFolder, determines what the selected folder will be when the dialog box is displayed, as long as SelectedPath is an absolute path that is a subfolder of RootFolder (or more accurately, points to a subfolder of the shell namespace represented by RootFolder).

What Is a Root Folder or Root Directory?

Definition & examples of root folders and root directories

The root folder, also called the root directory or sometimes just the root, of any partition or folder is the «highest» directory in the hierarchy. You can also think of it in general as the start or beginning of a particular folder structure.

The root directory contains all other folders in the drive or folder, and can, of course, also contain files. You can visualize this with an upside-down tree where the roots (the root folder) are at the top and the branches (subfolders) fall below; the root is what holds together all of its lower items.

For example, the root directory of the main partition on your computer is probably C:\. The root folder of your DVD or CD drive might be D:\. The root of the Windows Registry is where hives like HKEY_CLASSES_ROOT are stored.

ROOT is also an acronym for ROOT’s Object Oriented Technologies, but it has nothing to do with root folders.

Examples of Root Folders

The term root may also be relative to whatever location you’re talking about. For example, a program that installs to C:\Programs\Example uses that particular folder as its root, with potentially a series of subfolders beneath it.

This same thing applies to any other folder. Do you need to go to the root of the user folder for User1 in Windows? That’s the C:\Users\Name1\ folder. This, of course, changes depending on what user you’re talking about—the root folder of User2 would be C:\Users\User2\.

Accessing a Root Folder

A quick way to get to the root folder of the hard drive when you’re in a Windows Command Prompt is to execute the change directory—cd—command like this:

After executing, you’ll immediately be moved from the current working directory all the way up to the root folder. So, for example, if you’re in the C:\Windows\System32 folder and then enter the cd command with the backslash (as shown above), you’ll immediately be moved from where you’re at to C:\.

Similarly, executing the cd command like this:

. will move the directory up one position, which is helpful if you need to get to the root of a folder but not the root of the entire drive. For example, executing cd .. while in the C:\Users\User1\Downloads\ folder changes the current directory to C:\Users\User1\. Doing it again takes you to C:\Users\, and so on.

Below is an example where we start in a folder called Germany on the C:\ drive. As you can see, executing that same command in Command Prompt moves the working directory to the folder just before/above it, all the way to the root of the hard drive.

You may try to access a root folder only to find that you can’t see it when you’re browsing through Explorer. This is because some folders are hidden in Windows by default. See our article How Do I Show Hidden Files and Folders in Windows? if you need help unhiding them.

Читайте также:  Windows 10 диск 100 процентов активного времени

More About Root Folders & Directories

The term web root folder may sometimes be used to describe the directory that holds all of the files that make up a website. The same concept applies here as on your local computer—the files and folders in this root folder contain the main web page files, such as HTML files, that should be displayed when someone accesses the main URL of the website.

The term root used here shouldn’t be confused with the /root folder found on some Unix operating systems, where it’s instead of the home directory of a specific user account (which is sometimes called the root account). In a sense, though, since it’s the main folder for that specific user, you could refer to it as the root folder.

In some operating systems, files can be stored in the root directory, like the C:/ drive in Windows, but some OSs don’t support that.

The term root directory is used in the VMS operating system to define where all the user’s files are stored.

Where is the Ubuntu file system root directory in Windows Subsystem for Linux and vice versa?

I have installed Ubuntu subsystem on Windows 10 (after enabling feature in settings), but where is the Ubuntu file system root directory located in the drive?

/.ssh/id* — do not copy files into these folders via the Windows filesystem. – Rich Turner Mar 2 ’18 at 2:14

6 Answers 6

For Ubuntu installed from the Windows store:

Each distribution you install through the store is installed to that application’s appdata directory. For example: C:\Users\ \AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalState — benhillis

For WSL2 you can access to home directory from windows (Windows 10 build 18342) like this :

In earlier iterations of Windows Subsystem for Linux, the Ubuntu file system was at %localappdata%\Lxss (e.g., C:\Users\Username\AppData\Local\Lxss — replace the Username with your Username on Windows). See the WSL blog post on File System Support:

The primary file system used by WSL is VolFs. It is used to store the Linux system files, as well as the content of your Linux home directory. As such, VolFs supports most features the Linux VFS provides, including Linux permissions, symbolic links, FIFOs, sockets, and device files.

VolFs is used to mount the VFS root directory, using %LocalAppData%\lxss\rootfs as the backing storage. In addition, a few additional VolFs mount points exist, most notably /root and /home which are mounted using %LocalAppData%\lxss\root and %LocalAppData%\lxss\home respectively. The reason for these separate mounts is that when you uninstall WSL, the home directories are not removed by default, so any personal files stored there will be preserved.

CAUTION

Creating/modifying any files within the Linux subsystem using Windows apps & tools can cause Data corruption and data loss in Ubuntu subsystem! (Thanks to Rich Turner for suggesting these words of caution!) This is absolutely not supported. From the same blog post:

Interoperability with Windows

While VolFs files are stored in regular files on Windows in the directories mentioned above, interoperability with Windows is not supported. If a new file is added to one of these directories from Windows, it lacks the EAs needed by VolFs, so VolFs doesn’t know what to do with the file and simply ignores it. Many editors will also strip the EAs when saving an existing file, again making the file unusable in WSL.

Your Windows file system is located at /mnt/c in the Bash shell environment.

Оцените статью