Kali Linux Command Lines Part 2 – Working with Files

in kali •  7 years ago 

Welcome to Kali Linux Command Lines – Part 2 : Working with Files.

Here, I’ll show you the commands for files to work in Kali Linux. This article is absolutely for BEGINNERS, but as we move on with upcoming parts, we’ll see much more complex and advanced commands to work in Kali.
Commands like : file, touch, rm, cp, mv/rename are for recognizing, creating, removing, copying and moving/renaming files. FILE 1 is different from file 1 (Case Sensitive)

– Command file:
The file command determines the file type. It recognizes the file.
e.g. When we have file named kali.png, to recognize this file as an image, we execute a command like:
file kali.png

– Command touch:
One easy way to create an empty file is with touch. (We’ll see many other ways for creating files later in this tutorial series.)
e.g. If we want to create file with filename ‘cybrary’, then we execute a command like:
touch cybrary

– Command rm:
When you no longer need a file, use rm to remove it. When you use rm to remove a file, the file is gone. Therefore, be careful when removing files!
To prevent ourselves from accidentally removing a file, we can type rm -i
Command rm -i
e.g. rm -i cybrary

– Command cp:
To copy a file, use cp with a source and a target argument. For this, we execute command like:
cp 2.txt 3.txt (makes new 3.txt and holds the content of 2.txt)

Article by : Bijay Acharya (Me myself)

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Thank you. :)

Congratulations @tutorial-news! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

You published your First Post
You made your First Vote
You made your First Comment
You got a First Vote

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

By upvoting this notification, you can help all Steemit users. Learn how here!

Congratulations @tutorial-news! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!