Bash Commands

Change current path cd / cd /home/user Copy directory cp /home/user/old/dir /home/user/new Create directory mkdir /home/user/dir mkdir -p /home/user/dir Create file touch foo.txt bar.doc touch /home/user/dir/foo.txt Delete directory rm -r /home/user/dir Rename file mv old.txt new.txt Show current path pwd Show files ending with ls /home/user/*foo find -name "*foo" -type f Show files starting with … Continue reading Bash Commands