补
tac ~/.bashrc
more ~/.bashrc
head -n 20 ~/.bashrc
head -n 50 ~/.bashrc | tail -n 20
tail -n 20 ~/.bashrc
tail -n +50 ~/.bashrc
touch /tmp/hello
ls -l /tmp/hello
touch -d "5 days ago" /tmp/hello
ls -l /tmp/hello
chown root /tmp/hello
ls -l /tmp/hello
find / -name ".bashrc" 2>/dev/null
mkdir /test
tar -czvf /test.tar.gz /
tar -xzvf /test.tar.gz -C /tmp
echo 'export JAVA_HOME=/path/to/your/java' >> ~/.bashrc
将/path/to/your/java
替换为实际的Java安装路径。
source ~/.bashrc
echo $JAVA_HOME
su - hadoop
cd /usr/local/hadoop
start-dfs.sh
start-yarn.sh
hdfs dfs -mkdir -p /user/hadoop
hdfs dfs -mkdir /user/hadoop/test
hdfs dfs -ls /user/hadoop
hdfs dfs -put ~/.bashrc /user/hadoop/test/
hdfs dfs -ls /user/hadoop/test/
hdfs dfs -get /user/hadoop/test /usr/local/hadoop/
标签:tmp,hdfs,数据库,hadoop,dfs,bashrc,实验,test From: https://www.cnblogs.com/y1126/p/17814306.html