Common commands for copying files under liunx (copy files to shared folders)

The shared folder cannot be accessed due to liunx normal user permissions.

1. Enter the super administrator
sudo -i
2. Copy the files in the current directory to ~/workdpsvr/Lib
sudo cp xxx /home/hduser 
cannot be used here because it is a super administrator
3. Modify permissions
sudo chown hduser:hduser /home/hduser/workspace/Lib/spark-assembly-1.4.0-hadoop2.6.0.jar 
 

Guess you like

Origin blog.csdn.net/Draven__/article/details/90214980