To check the ownership of file1.txt, you can use the following command in the terminal:
hdfs dfs -ls /file1.txt | awk '{print $3, $4}'
This command will display the user and group names associated with file1.txt. The output will show the owner and the group, separated by a space. For example, it might output something like:
ahmed camelherders
This indicates that the user ahmed is the owner and camelherders is the group associated with file1.txt.
