WalzoneInterview Prep
📞 Interviewing soon? Practice with a realistic AI mock phone interview — it calls you, then scores you. First 15 min FREE →

Hadoop & Big Data · Deep Dive into HDFS · question 30 of 120

Can you name some of the common HDFS shell commands?

📕 Buy this interview preparation book: 120 Hadoop & Big Data questions & answers — PDF + EPUB for $5

Yes, I can provide you a list of some common HDFS shell commands that are used frequently in Hadoop management and operations. Note that these commands start with ‘hdfs dfs‘ or ‘hadoop fs‘. Here are some of them:

1. **Listing Files and Directories:**

hdfs dfs -ls /path/to/directory

2. **Creating Directories:**

hdfs dfs -mkdir /path/to/new/directory

3. **Copying Files from Local FileSystem to HDFS:**

hdfs dfs -put /path/to/local/file /path/to/hdfs/directory

4. **Copying Files from HDFS to Local FileSystem:**

hdfs dfs -get /path/to/hdfs/file /path/to/local/directory

5. **Deleting Files and Directories:**

hdfs dfs -rm /path/to/file
hdfs dfs -rmdir /path/to/directory

6. **Moving Files and Directories in HDFS:**

hdfs dfs -mv /path/to/source /path/to/destination

7. **Checking Disk Usage:**

hdfs dfs -du /path/to/directory

8. **Displaying File Content:**

hdfs dfs -cat /path/to/file

9. **Checking HDFS Summary:**

hdfs dfsadmin -report

10. **Changing File and Directory Permissions:**

hdfs dfs -chmod [permissions] /path/to/file_or_directory

11. **Changing File Ownership and Group:**

hdfs dfs -chown username:groupname /path/to/file_or_directory
Reading is step one. Saying it out loud is the interview. Our AI interviewer calls your phone and runs a realistic Hadoop & Big Data interview — then scores it.
📞 Practice Hadoop & Big Data — free 15 min
📕 Buy this interview preparation book: 120 Hadoop & Big Data questions & answers — PDF + EPUB for $5

All 120 Hadoop & Big Data questions · All topics