{"id":40,"date":"2020-11-07T11:35:48","date_gmt":"2020-11-07T11:35:48","guid":{"rendered":"https:\/\/picockpit.com\/raspberry-pi\/?p=40"},"modified":"2023-08-30T10:35:14","modified_gmt":"2023-08-30T10:35:14","slug":"how-to-create-new-files-as-root-user-from-the-raspberry-pi-os-desktop","status":"publish","type":"post","link":"https:\/\/picockpit.com\/raspberry-pi\/how-to-create-new-files-as-root-user-from-the-raspberry-pi-os-desktop\/","title":{"rendered":"How to create new files as root user from the Raspberry Pi OS Desktop"},"content":{"rendered":"\n<p>Sometimes, you want to be able to edit and create system files on Raspberry Pi OS. I&#8217;ll show you how to do this using pcmanfm, the file system browser you already know on the Raspberry Pi.<\/p>\n\n\n\n<p>First, you&#8217;ll need to open the file browser in super user mode <\/p>\n\n\n\n<p>Click on Raspberry Pi OS Menu, and here click the &#8220;Run &#8230;&#8221; command: <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"227\" height=\"500\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2020\/11\/image-3.png\" alt=\"Raspberry Pi OS Menu, showing the run command.\" class=\"wp-image-32\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2020\/11\/image-3.png 227w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2020\/11\/image-3-136x300.png 136w\" sizes=\"auto, (max-width: 227px) 100vw, 227px\" \/><figcaption class=\"wp-element-caption\">The Raspberry Pi OS Menu. The Run command is near the bottom<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Run pcmanfm as root (sudo pcmanfm) by typing &#8220;sudo pcmanfm&#8221; (without the quotes) in the dialog which opens, and clicking on OK:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"342\" height=\"168\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2020\/11\/image-4.png\" alt=\"Run command dialog on Raspberry Pi OS\" class=\"wp-image-33\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2020\/11\/image-4.png 342w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2020\/11\/image-4-300x147.png 300w\" sizes=\"auto, (max-width: 342px) 100vw, 342px\" \/><figcaption class=\"wp-element-caption\">The run command, preparing to run pcmanfm as root<\/figcaption><\/figure>\n<\/div>\n\n\n<p>A new window opens, showing you the contents of the \/home\/pi directory:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"663\" height=\"583\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2020\/11\/image-5.png\" alt=\"pcmanfm screenshot with super user rights\" class=\"wp-image-34\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2020\/11\/image-5.png 663w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2020\/11\/image-5-300x264.png 300w\" sizes=\"auto, (max-width: 663px) 100vw, 663px\" \/><figcaption class=\"wp-element-caption\">pcmanfm, the file manager running as super user<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Note: you should see this icon, just under the &#8220;File&#8221; menu. It indicates that you are using pcmanfm as user root, and should therefore be extra careful (since root can edit \/ delete \/ move any file! even files which are critical for a normal system operation).<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"36\" height=\"37\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2020\/11\/image-6.png\" alt=\"\" class=\"wp-image-35\"\/><figcaption class=\"wp-element-caption\">Root mode indicator<\/figcaption><\/figure>\n<\/div>\n\n\n<p>As an example, if you wish to create a new <a href=\"\/raspberry-pi\/control-your-raspberry-pi-remotely-using-picontrol\/\">configuration file for PiControl<\/a>, you could navigate to the following directory on your Raspberry Pi:<\/p>\n\n\n\n<p class=\"has-text-align-center\"><em>\/etc\/picockpit-client\/apps\/com.picockpit\/picontrol\/modules<\/em><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2020\/11\/image-7.png\" alt=\"\" class=\"wp-image-38\" style=\"width:671px;height:465px\" width=\"671\" height=\"465\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2020\/11\/image-7.png 838w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2020\/11\/image-7-300x208.png 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2020\/11\/image-7-768x532.png 768w\" sizes=\"auto, (max-width: 671px) 100vw, 671px\" \/><figcaption class=\"wp-element-caption\">Showing the configuration directory for PiCockpit&#8217;s PiControl. Note, if you have a fresh installation of PiCockpit, you&#8217;ll only see core.json. The other modules were created by me for test and demonstration purposes (remote control experiments).<\/figcaption><\/figure>\n<\/div>\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Tip: you can also copy &amp; paste the path I&#8217;ve given above, and hit the enter key to navigate to the directory.<\/p>\n<cite>Raspi Berry&#8217;s helpful Raspberry Pi tips<\/cite><\/blockquote>\n\n\n\n<p>right-click into the empty area next to the existing files, and select &#8220;New File&#8230;&#8221;.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"373\" height=\"415\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2020\/11\/image-1.png\" alt=\"Creating a new file with Raspbian OS\" class=\"wp-image-29\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2020\/11\/image-1.png 373w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2020\/11\/image-1-270x300.png 270w\" sizes=\"auto, (max-width: 373px) 100vw, 373px\" \/><figcaption class=\"wp-element-caption\">Raspberry Pi OS menu for a right-click to create a new file<\/figcaption><\/figure>\n<\/div>\n\n\n<p>For example, if you want a new file &#8220;ssh-server.json&#8221;, you&#8217;ll type:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"462\" height=\"180\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2020\/11\/image-2.png\" alt=\"\" class=\"wp-image-30\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2020\/11\/image-2.png 462w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2020\/11\/image-2-300x117.png 300w\" sizes=\"auto, (max-width: 462px) 100vw, 462px\" \/><figcaption class=\"wp-element-caption\">A dialog asks for the name for the new file.<\/figcaption><\/figure>\n<\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2020\/11\/image-8.png\" alt=\"creating a new file as root user with pcmanfm\" class=\"wp-image-39\" style=\"width:580px;height:134px\" width=\"580\" height=\"134\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2020\/11\/image-8.png 835w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2020\/11\/image-8-300x70.png 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2020\/11\/image-8-768x178.png 768w\" sizes=\"auto, (max-width: 580px) 100vw, 580px\" \/><figcaption class=\"wp-element-caption\">ssh-server.json is now created in this folder.<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Using the menus of pcmanfm you can also delete files, copy and move them. <\/p>\n\n\n\n<p>You can learn more about pcmanfm <a href=\"https:\/\/en.wikipedia.org\/wiki\/PCMan_File_Manager\">here<\/a>.<\/p>\n\n\n\n<p>I hope this helps new users needing to edit system files as root on the Raspberry Pi \ud83d\ude42<\/p>\n<div class=\"shariff shariff-align-center shariff-widget-align-left shariff-buttonstretch\"><ul class=\"shariff-buttons theme-white orientation-horizontal buttonsize-medium\"><li class=\"shariff-button twitter shariff-nocustomcolor\" style=\"background-color:#595959\"><a href=\"https:\/\/twitter.com\/share?url=https%3A%2F%2Fpicockpit.com%2Fraspberry-pi%2Fhow-to-create-new-files-as-root-user-from-the-raspberry-pi-os-desktop%2F&text=How%20to%20create%20new%20files%20as%20root%20user%20from%20the%20Raspberry%20Pi%20OS%20Desktop\" title=\"Share on X\" aria-label=\"Share on X\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\"; background-color:#000; color:#000\" target=\"_blank\"><span class=\"shariff-icon\" style=\"fill:#000\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 24 24\"><path fill=\"#000\" d=\"M14.258 10.152L23.176 0h-2.113l-7.747 8.813L7.133 0H0l9.352 13.328L0 23.973h2.113l8.176-9.309 6.531 9.309h7.133zm-2.895 3.293l-.949-1.328L2.875 1.56h3.246l6.086 8.523.945 1.328 7.91 11.078h-3.246zm0 0\"\/><\/svg><\/span><span class=\"shariff-text\" style=\"color:#000\">share<\/span>&nbsp;<\/a><\/li><li class=\"shariff-button facebook shariff-nocustomcolor\" style=\"background-color:#4273c8\"><a href=\"https:\/\/www.facebook.com\/sharer\/sharer.php?u=https%3A%2F%2Fpicockpit.com%2Fraspberry-pi%2Fhow-to-create-new-files-as-root-user-from-the-raspberry-pi-os-desktop%2F\" title=\"Share on Facebook\" aria-label=\"Share on Facebook\" role=\"button\" rel=\"nofollow\" class=\"shariff-link\" style=\"; background-color:#3b5998; color:#3b5998\" target=\"_blank\"><span class=\"shariff-icon\" style=\"fill:#3b5998\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 18 32\"><path fill=\"#3b5998\" d=\"M17.1 0.2v4.7h-2.8q-1.5 0-2.1 0.6t-0.5 1.9v3.4h5.2l-0.7 5.3h-4.5v13.6h-5.5v-13.6h-4.5v-5.3h4.5v-3.9q0-3.3 1.9-5.2t5-1.8q2.6 0 4.1 0.2z\"\/><\/svg><\/span><span class=\"shariff-text\" style=\"color:#3b5998\">share<\/span>&nbsp;<\/a><\/li><li class=\"shariff-button telegram shariff-nocustomcolor\" style=\"background-color:#4084A6\"><a href=\"https:\/\/telegram.me\/share\/url?url=https%3A%2F%2Fpicockpit.com%2Fraspberry-pi%2Fhow-to-create-new-files-as-root-user-from-the-raspberry-pi-os-desktop%2F&text=How%20to%20create%20new%20files%20as%20root%20user%20from%20the%20Raspberry%20Pi%20OS%20Desktop\" title=\"Share on Telegram\" aria-label=\"Share on Telegram\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\"; background-color:#0088cc; color:#0088cc\" target=\"_blank\"><span class=\"shariff-icon\" style=\"fill:#0088cc\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 32 32\"><path fill=\"#0088cc\" d=\"M30.8 6.5l-4.5 21.4c-.3 1.5-1.2 1.9-2.5 1.2L16.9 24l-3.3 3.2c-.4.4-.7.7-1.4.7l.5-7L25.5 9.2c.6-.5-.1-.8-.9-.3l-15.8 10L2 16.7c-1.5-.5-1.5-1.5.3-2.2L28.9 4.3c1.3-.5 2.3.3 1.9 2.2z\"\/><\/svg><\/span><span class=\"shariff-text\" style=\"color:#0088cc\">share<\/span>&nbsp;<\/a><\/li><li class=\"shariff-button reddit shariff-nocustomcolor\" style=\"background-color:#ff5700\"><a href=\"https:\/\/www.reddit.com\/submit?url=https%3A%2F%2Fpicockpit.com%2Fraspberry-pi%2Fhow-to-create-new-files-as-root-user-from-the-raspberry-pi-os-desktop%2F\" title=\"Share on Reddit\" aria-label=\"Share on Reddit\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\"; background-color:#ff4500; color:#ff4500\" target=\"_blank\"><span class=\"shariff-icon\" style=\"fill:#ff4500\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\"><path fill=\"#ff4500\" d=\"M440.3 203.5c-15 0-28.2 6.2-37.9 15.9-35.7-24.7-83.8-40.6-137.1-42.3L293 52.3l88.2 19.8c0 21.6 17.6 39.2 39.2 39.2 22 0 39.7-18.1 39.7-39.7s-17.6-39.7-39.7-39.7c-15.4 0-28.7 9.3-35.3 22l-97.4-21.6c-4.9-1.3-9.7 2.2-11 7.1L246.3 177c-52.9 2.2-100.5 18.1-136.3 42.8-9.7-10.1-23.4-16.3-38.4-16.3-55.6 0-73.8 74.6-22.9 100.1-1.8 7.9-2.6 16.3-2.6 24.7 0 83.8 94.4 151.7 210.3 151.7 116.4 0 210.8-67.9 210.8-151.7 0-8.4-.9-17.2-3.1-25.1 49.9-25.6 31.5-99.7-23.8-99.7zM129.4 308.9c0-22 17.6-39.7 39.7-39.7 21.6 0 39.2 17.6 39.2 39.7 0 21.6-17.6 39.2-39.2 39.2-22 .1-39.7-17.6-39.7-39.2zm214.3 93.5c-36.4 36.4-139.1 36.4-175.5 0-4-3.5-4-9.7 0-13.7 3.5-3.5 9.7-3.5 13.2 0 27.8 28.5 120 29 149 0 3.5-3.5 9.7-3.5 13.2 0 4.1 4 4.1 10.2.1 13.7zm-.8-54.2c-21.6 0-39.2-17.6-39.2-39.2 0-22 17.6-39.7 39.2-39.7 22 0 39.7 17.6 39.7 39.7-.1 21.5-17.7 39.2-39.7 39.2z\"\/><\/svg><\/span><span class=\"shariff-text\" style=\"color:#ff4500\">share<\/span>&nbsp;<\/a><\/li><\/ul><\/div>","protected":false},"excerpt":{"rendered":"<p>Sometimes, you want to be able to edit and create system files on Raspberry Pi OS. I&#8217;ll show you how to do this using pcmanfm, the file system browser you already know on the Raspberry Pi. First, you&#8217;ll need to open the file browser in super user mode Click on Raspberry Pi OS Menu, and&hellip;<\/p>\n","protected":false},"author":2,"featured_media":34,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[602,606,601,189,486,447,187,600,603,604,605],"class_list":["post-40","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-raspberry-pi-how-to","tag-desktop","tag-linux","tag-os","tag-pi","tag-project","tag-projects","tag-raspberry-pi","tag-raspbian","tag-root","tag-root-user","tag-sudo"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to create new files as root user from the Raspberry Pi OS Desktop | PiCockpit<\/title>\n<meta name=\"description\" content=\"Sometimes, you want to be able to edit and create system files on Raspberry Pi OS. I&#039;ll show you how to do this in this post.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/picockpit.com\/raspberry-pi\/how-to-create-new-files-as-root-user-from-the-raspberry-pi-os-desktop\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to create new files as root user from the Raspberry Pi OS Desktop | PiCockpit\" \/>\n<meta property=\"og:description\" content=\"Sometimes, you want to be able to edit and create system files on Raspberry Pi OS. I&#039;ll show you how to do this in this post.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/picockpit.com\/raspberry-pi\/how-to-create-new-files-as-root-user-from-the-raspberry-pi-os-desktop\/\" \/>\n<meta property=\"og:site_name\" content=\"PiCockpit\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/pi3gshop\" \/>\n<meta property=\"article:published_time\" content=\"2020-11-07T11:35:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-30T10:35:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2020\/11\/image-5.png\" \/>\n\t<meta property=\"og:image:width\" content=\"663\" \/>\n\t<meta property=\"og:image:height\" content=\"583\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"raspi berry\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@pi3g\" \/>\n<meta name=\"twitter:site\" content=\"@pi3g\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"raspi berry\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/how-to-create-new-files-as-root-user-from-the-raspberry-pi-os-desktop\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/how-to-create-new-files-as-root-user-from-the-raspberry-pi-os-desktop\\\/\"},\"author\":{\"name\":\"raspi berry\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#\\\/schema\\\/person\\\/7af3a7a8c999bc722029ef9ca9d78eee\"},\"headline\":\"How to create new files as root user from the Raspberry Pi OS Desktop\",\"datePublished\":\"2020-11-07T11:35:48+00:00\",\"dateModified\":\"2023-08-30T10:35:14+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/how-to-create-new-files-as-root-user-from-the-raspberry-pi-os-desktop\\\/\"},\"wordCount\":384,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/how-to-create-new-files-as-root-user-from-the-raspberry-pi-os-desktop\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/image-5.png\",\"keywords\":[\"desktop\",\"linux\",\"OS\",\"Pi\",\"project\",\"Projects\",\"Raspberry Pi\",\"Raspbian\",\"root\",\"root user\",\"sudo\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/how-to-create-new-files-as-root-user-from-the-raspberry-pi-os-desktop\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/how-to-create-new-files-as-root-user-from-the-raspberry-pi-os-desktop\\\/\",\"url\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/how-to-create-new-files-as-root-user-from-the-raspberry-pi-os-desktop\\\/\",\"name\":\"How to create new files as root user from the Raspberry Pi OS Desktop | PiCockpit\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/how-to-create-new-files-as-root-user-from-the-raspberry-pi-os-desktop\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/how-to-create-new-files-as-root-user-from-the-raspberry-pi-os-desktop\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/image-5.png\",\"datePublished\":\"2020-11-07T11:35:48+00:00\",\"dateModified\":\"2023-08-30T10:35:14+00:00\",\"description\":\"Sometimes, you want to be able to edit and create system files on Raspberry Pi OS. I'll show you how to do this in this post.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/how-to-create-new-files-as-root-user-from-the-raspberry-pi-os-desktop\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/how-to-create-new-files-as-root-user-from-the-raspberry-pi-os-desktop\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/how-to-create-new-files-as-root-user-from-the-raspberry-pi-os-desktop\\\/#primaryimage\",\"url\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/image-5.png\",\"contentUrl\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/image-5.png\",\"width\":663,\"height\":583},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/how-to-create-new-files-as-root-user-from-the-raspberry-pi-os-desktop\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tutorials\",\"item\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/category\\\/raspberry-pi-how-to\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to create new files as root user from the Raspberry Pi OS Desktop\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#website\",\"url\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/\",\"name\":\"PiCockpit\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#organization\",\"name\":\"PiCockpit.com\",\"url\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/Screenshot-from-2023-07-24-15-01-24.png\",\"contentUrl\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/Screenshot-from-2023-07-24-15-01-24.png\",\"width\":1165,\"height\":283,\"caption\":\"PiCockpit.com\"},\"image\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/pi3gshop\",\"https:\\\/\\\/x.com\\\/pi3g\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#\\\/schema\\\/person\\\/7af3a7a8c999bc722029ef9ca9d78eee\",\"name\":\"raspi berry\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c10c423ceeff34163dd54a5472d6da17d71c0e360e0cf8cdb8847006372f216b?s=96&d=blank&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c10c423ceeff34163dd54a5472d6da17d71c0e360e0cf8cdb8847006372f216b?s=96&d=blank&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c10c423ceeff34163dd54a5472d6da17d71c0e360e0cf8cdb8847006372f216b?s=96&d=blank&r=g\",\"caption\":\"raspi berry\"},\"description\":\"I'm here to help you with all your Raspberry Pi related questions &amp; love to share about new project ideas for the Raspberry Pi, and give quick tips. Of course I'll also help you with PiCockpit and how to make your Raspberry Pi even easier to use with this raspberry pi monitoring solution :-)\",\"sameAs\":[\"https:\\\/\\\/picockpit.com\"],\"url\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/author\\\/raspi-berry\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to create new files as root user from the Raspberry Pi OS Desktop | PiCockpit","description":"Sometimes, you want to be able to edit and create system files on Raspberry Pi OS. I'll show you how to do this in this post.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/picockpit.com\/raspberry-pi\/how-to-create-new-files-as-root-user-from-the-raspberry-pi-os-desktop\/","og_locale":"en_US","og_type":"article","og_title":"How to create new files as root user from the Raspberry Pi OS Desktop | PiCockpit","og_description":"Sometimes, you want to be able to edit and create system files on Raspberry Pi OS. I'll show you how to do this in this post.","og_url":"https:\/\/picockpit.com\/raspberry-pi\/how-to-create-new-files-as-root-user-from-the-raspberry-pi-os-desktop\/","og_site_name":"PiCockpit","article_publisher":"https:\/\/www.facebook.com\/pi3gshop","article_published_time":"2020-11-07T11:35:48+00:00","article_modified_time":"2023-08-30T10:35:14+00:00","og_image":[{"width":663,"height":583,"url":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2020\/11\/image-5.png","type":"image\/png"}],"author":"raspi berry","twitter_card":"summary_large_image","twitter_creator":"@pi3g","twitter_site":"@pi3g","twitter_misc":{"Written by":"raspi berry","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/picockpit.com\/raspberry-pi\/how-to-create-new-files-as-root-user-from-the-raspberry-pi-os-desktop\/#article","isPartOf":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/how-to-create-new-files-as-root-user-from-the-raspberry-pi-os-desktop\/"},"author":{"name":"raspi berry","@id":"https:\/\/picockpit.com\/raspberry-pi\/#\/schema\/person\/7af3a7a8c999bc722029ef9ca9d78eee"},"headline":"How to create new files as root user from the Raspberry Pi OS Desktop","datePublished":"2020-11-07T11:35:48+00:00","dateModified":"2023-08-30T10:35:14+00:00","mainEntityOfPage":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/how-to-create-new-files-as-root-user-from-the-raspberry-pi-os-desktop\/"},"wordCount":384,"commentCount":0,"publisher":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/#organization"},"image":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/how-to-create-new-files-as-root-user-from-the-raspberry-pi-os-desktop\/#primaryimage"},"thumbnailUrl":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2020\/11\/image-5.png","keywords":["desktop","linux","OS","Pi","project","Projects","Raspberry Pi","Raspbian","root","root user","sudo"],"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/picockpit.com\/raspberry-pi\/how-to-create-new-files-as-root-user-from-the-raspberry-pi-os-desktop\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/picockpit.com\/raspberry-pi\/how-to-create-new-files-as-root-user-from-the-raspberry-pi-os-desktop\/","url":"https:\/\/picockpit.com\/raspberry-pi\/how-to-create-new-files-as-root-user-from-the-raspberry-pi-os-desktop\/","name":"How to create new files as root user from the Raspberry Pi OS Desktop | PiCockpit","isPartOf":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/#website"},"primaryImageOfPage":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/how-to-create-new-files-as-root-user-from-the-raspberry-pi-os-desktop\/#primaryimage"},"image":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/how-to-create-new-files-as-root-user-from-the-raspberry-pi-os-desktop\/#primaryimage"},"thumbnailUrl":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2020\/11\/image-5.png","datePublished":"2020-11-07T11:35:48+00:00","dateModified":"2023-08-30T10:35:14+00:00","description":"Sometimes, you want to be able to edit and create system files on Raspberry Pi OS. I'll show you how to do this in this post.","breadcrumb":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/how-to-create-new-files-as-root-user-from-the-raspberry-pi-os-desktop\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/picockpit.com\/raspberry-pi\/how-to-create-new-files-as-root-user-from-the-raspberry-pi-os-desktop\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/picockpit.com\/raspberry-pi\/how-to-create-new-files-as-root-user-from-the-raspberry-pi-os-desktop\/#primaryimage","url":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2020\/11\/image-5.png","contentUrl":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2020\/11\/image-5.png","width":663,"height":583},{"@type":"BreadcrumbList","@id":"https:\/\/picockpit.com\/raspberry-pi\/how-to-create-new-files-as-root-user-from-the-raspberry-pi-os-desktop\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/picockpit.com\/raspberry-pi\/"},{"@type":"ListItem","position":2,"name":"Tutorials","item":"https:\/\/picockpit.com\/raspberry-pi\/category\/raspberry-pi-how-to\/"},{"@type":"ListItem","position":3,"name":"How to create new files as root user from the Raspberry Pi OS Desktop"}]},{"@type":"WebSite","@id":"https:\/\/picockpit.com\/raspberry-pi\/#website","url":"https:\/\/picockpit.com\/raspberry-pi\/","name":"PiCockpit","description":"","publisher":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/picockpit.com\/raspberry-pi\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/picockpit.com\/raspberry-pi\/#organization","name":"PiCockpit.com","url":"https:\/\/picockpit.com\/raspberry-pi\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/picockpit.com\/raspberry-pi\/#\/schema\/logo\/image\/","url":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2023\/07\/Screenshot-from-2023-07-24-15-01-24.png","contentUrl":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2023\/07\/Screenshot-from-2023-07-24-15-01-24.png","width":1165,"height":283,"caption":"PiCockpit.com"},"image":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/pi3gshop","https:\/\/x.com\/pi3g"]},{"@type":"Person","@id":"https:\/\/picockpit.com\/raspberry-pi\/#\/schema\/person\/7af3a7a8c999bc722029ef9ca9d78eee","name":"raspi berry","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/c10c423ceeff34163dd54a5472d6da17d71c0e360e0cf8cdb8847006372f216b?s=96&d=blank&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c10c423ceeff34163dd54a5472d6da17d71c0e360e0cf8cdb8847006372f216b?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c10c423ceeff34163dd54a5472d6da17d71c0e360e0cf8cdb8847006372f216b?s=96&d=blank&r=g","caption":"raspi berry"},"description":"I'm here to help you with all your Raspberry Pi related questions &amp; love to share about new project ideas for the Raspberry Pi, and give quick tips. Of course I'll also help you with PiCockpit and how to make your Raspberry Pi even easier to use with this raspberry pi monitoring solution :-)","sameAs":["https:\/\/picockpit.com"],"url":"https:\/\/picockpit.com\/raspberry-pi\/author\/raspi-berry\/"}]}},"_links":{"self":[{"href":"https:\/\/picockpit.com\/raspberry-pi\/wp-json\/wp\/v2\/posts\/40","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/picockpit.com\/raspberry-pi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/picockpit.com\/raspberry-pi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/picockpit.com\/raspberry-pi\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/picockpit.com\/raspberry-pi\/wp-json\/wp\/v2\/comments?post=40"}],"version-history":[{"count":3,"href":"https:\/\/picockpit.com\/raspberry-pi\/wp-json\/wp\/v2\/posts\/40\/revisions"}],"predecessor-version":[{"id":5066,"href":"https:\/\/picockpit.com\/raspberry-pi\/wp-json\/wp\/v2\/posts\/40\/revisions\/5066"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/picockpit.com\/raspberry-pi\/wp-json\/wp\/v2\/media\/34"}],"wp:attachment":[{"href":"https:\/\/picockpit.com\/raspberry-pi\/wp-json\/wp\/v2\/media?parent=40"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/picockpit.com\/raspberry-pi\/wp-json\/wp\/v2\/categories?post=40"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/picockpit.com\/raspberry-pi\/wp-json\/wp\/v2\/tags?post=40"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}