<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Databricks Magic Command in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/databricks-magic-command/m-p/76546#M35257</link>
    <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/102910"&gt;@Wolverine&lt;/a&gt;&amp;nbsp;Try %fs rm -r&amp;nbsp;&lt;SPAN&gt;sampledir&amp;nbsp;&lt;BR /&gt;to delete recursively&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jul 2024 20:23:58 GMT</pubDate>
    <dc:creator>Giri-Patcham</dc:creator>
    <dc:date>2024-07-02T20:23:58Z</dc:date>
    <item>
      <title>Databricks Magic Command</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-magic-command/m-p/76545#M35256</link>
      <description>&lt;P&gt;I am trying few commands&amp;nbsp;&lt;/P&gt;&lt;P&gt;what is the equivalent magic command of&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;dbutils.fs.rm(&lt;/SPAN&gt;&lt;SPAN&gt;"dbfs:/sampledir"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;True&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;Actually I am looking how to use magic commands in same way as dbutils&amp;nbsp; . For Instance&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;dbutils.fs.head(&lt;/SPAN&gt;&lt;SPAN&gt;'dbfs:/FileStore/&amp;lt;&amp;lt;name&amp;gt;&amp;gt;.csv'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;10&lt;/SPAN&gt;&lt;SPAN&gt;) Gives 10 bytes&amp;nbsp; I am looking for magic command like how to give second parameter&amp;nbsp; &amp;nbsp;%fs head dbfs:/FileStore/hotel_data.csv 10(If we give upto 10) it works but when we pass second one like 10 it will not give output like 10 bytes as above&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 02 Jul 2024 20:32:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-magic-command/m-p/76545#M35256</guid>
      <dc:creator>Wolverine</dc:creator>
      <dc:date>2024-07-02T20:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Magic Command</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-magic-command/m-p/76546#M35257</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/102910"&gt;@Wolverine&lt;/a&gt;&amp;nbsp;Try %fs rm -r&amp;nbsp;&lt;SPAN&gt;sampledir&amp;nbsp;&lt;BR /&gt;to delete recursively&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2024 20:23:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-magic-command/m-p/76546#M35257</guid>
      <dc:creator>Giri-Patcham</dc:creator>
      <dc:date>2024-07-02T20:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Magic Command</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-magic-command/m-p/76547#M35258</link>
      <description>&lt;P&gt;You could use shell commands, like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;%sh rm -r sampledir&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to check for the correct path before, I currently don't know where dbfs folders are exactly mounted&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2024 20:26:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-magic-command/m-p/76547#M35258</guid>
      <dc:creator>Witold</dc:creator>
      <dc:date>2024-07-02T20:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Magic Command</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-magic-command/m-p/76549#M35260</link>
      <description>&lt;P&gt;Ok Actually I am looking how to use magic commands in same way as dbutils&amp;nbsp; . For Instance&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;dbutils.fs.head(&lt;/SPAN&gt;&lt;SPAN&gt;'dbfs:/FileStore/&amp;lt;&amp;lt;name&amp;gt;&amp;gt;.csv'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;10&lt;/SPAN&gt;&lt;SPAN&gt;) Gives 10 bytes&amp;nbsp; I am looking for magic command like how to give second parameter&amp;nbsp; &amp;nbsp;%fs head dbfs:/FileStore/hotel_data.csv 10(If we give upto 10) it works but when we pass second one like 10 it will not give output like 10 bytes as above&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 02 Jul 2024 20:30:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-magic-command/m-p/76549#M35260</guid>
      <dc:creator>Wolverine</dc:creator>
      <dc:date>2024-07-02T20:30:49Z</dc:date>
    </item>
  </channel>
</rss>

