BDC LAB WEEK-1
Name: A. Chaitanya Lakshmi
Roll No: 23071A7205
Week 1: HDFS (Storage)
A. Hadoop Storage File System Your first objective is to create a directory structure in HDFS using
HDFS commands. Create the local files using Linux commands and move the files to HDFS directory.
and vice versa.
I. Write a command to create the directory structure in HDFS.
II. Write a Command to move file from local Unix/Linux machine to HDFS.
Basic Commands:
1. pwd
Displays the present working directory.
2. whoami
Shows the username of the currently logged-in user.
3. mkdir
Creates a new directory named seconddir.
4. ls
Lists all files and directories in the current directory.
5. cd
Changes the current directory to seconddir.
6. cd ..
Moves one level up to the parent directory.
7. touch [Link]
Creates an empty file named [Link].
8. cat [Link]
Displays the contents of the file on the terminal.
9. vi [Link]
Opens the file in the vi editor for editing.