Databricks Magic Command
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2024 01:14 PM - edited 07-02-2024 01:32 PM
I am trying few commands
what is the equivalent magic command of
dbutils.fs.rm("dbfs:/sampledir",True)
Actually I am looking how to use magic commands in same way as dbutils . For Instance
dbutils.fs.head('dbfs:/FileStore/<<name>>.csv',10) Gives 10 bytes I am looking for magic command like how to give second parameter %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