Redhat Linux Basic Command For Beginners
Redhat Linux Basic Commands For Beginners
This Post will Learn You Some Basic Command For You. That's Most Important For Beginners Who Wanna Learn Seriously Linux. That's wanna Make Future In This line.
Redhat Linux Basic Commands For Beginner
1. Open a shell as an ordinary user.
2. Type pwd . You should be in the directory /home/$USER.
3. Type mkdir newfiles and mkdir oldfiles . Type ls
. You’ll see the directories
you have just created.
4. Type touch
newfiles/.hidden and touch newfiles/unhidden . This creates two
files in the directory newfiles.
5. Type cd oldfiles .
6. Type ls -al .
This shows two items only: ., which refers to the current directory;
and .., which refers to the item
above this (the parent directory).
7. Type ls -al ../newfiles . In this command, you are using a relative pathname to
refer to the contents of the /home/$USER/newfiles directory.
8. Use the command cp -a newfiles/.
9. Type ls -a .
You see that you have created the subdirectory newfiles into the
directory oldfiles.
10. Make sure that you are still in /home/$USER/oldfiles, and type rm -rf
newfiles
.
11. Now use the command cp -a newfiles/*. . Type ls -l to
see what has been copied
now. You’ll see that the hidden
file has not been copied.
12.
To make sure
that you’ll copy hidden files as well as regular files, use
cp -a newfiles/.
13.
Verify the
command worked this time, using ls -al . You’ll notice that the hidden
as
well as the regular files have been successfully copied this time.
These Commands are Useful For Beginners. If You Like it. Don't Forget to Subscribe , Share , Like !!!!
Leave a Comment