Skip to main content

How to Move, Copy & Delete files in Termux



How to Move, Copy & Delete files in Termux

How to Move, Copy & Delete files in Termux.





        Hello friends, in this post I am going to tell you how you can move and copy and delete any file and folder in termux. We saw the basic commands of termux in the previous post. Now we will see the commands that copy, move and delete files.



Important things for this

1.  Termux Apk: -  Download

2. Termux Apk:- Download



How to move files and folders in Termux?

          So let us first see how to move files and folders. we use the move and cut option to move a file to another folder in the file manager. So in that way we use 'mv' command to move a file in termux. With this command, you can move any files, apk, song, movie, folder.
         So how to use this command. For this, you have to see the steps given below.

1 . First open the termux apk
2. After that you have to go to the folder or files you want to move.
3 . Now you have to enter 'mv' command and after that you have to enter the name of the file you want to move by giving space. Then you have to give space


$ mv Android


4. Now we have to enter the location of the file where we want to move it.

5. Now you have to open the new session.

5. After that you have to open the folder in which the file will to be moved.

6 . After that you have to type 'pwd' command ,so that we will get the location of that folder.


$ pwd


7. Now you have to copy that location and open the first session and paste it there.


$ mv Android /sdcard/Blogger


8 . Now you have to press enter button. After that your file will be moved. So in this way you can move any file or folder with 'mv' command.




How to copy files and folders in Termux?

        Now we see how to copy and paste any file and folder in termux. The way we copy and paste files in the file manager with the direct 'Copy' option, in that way some commands are used in termux
         but friends there are 2 commands for this, from the first command we just copy files like apk, song, doc, pdf  files but we cannot copy the folders. And with another command, we can copy both files and folders, so now let us see those commands.


1. cp

        Using this command, we can copy any file except the folders. To use this command, follow the steps below.

1 . First open the termux apk.

2. Open the folder in which you want to copy the file.
3 . Now you have to enter 'cp' command and after that give space, and type the name of file , which you want to copy and give space.


$ cp Blogger.apk


4. After that, you will have to type the loaction of folder where you want to paste this file . Then for this
5 . you have to open a new session. And you have to open the folder in which you want to paste the file.
6 . Now you have to enter 'pwd' command and press enter button. After that you will get the location of this file, then you have to copy that location.


$ pwd


7. Now you have to open the first session again and paste this location there.


$ cp Blogger.apk /sdcard/Android


8. Now you have to press the enter button. After that this file will be copied and pasted in your given folder, you can check.


2. cp -r

        Now 'cp -r' command, with this command you can copy everything, means files, folders everything. So the use of this command is the same as the command given above. All you have to do is type 'cp -r' command, after that you have to enter the name of the folder or file you want to copy and you have to enter the location by giving space, wherever you want to paste it.


$ cp -r Android /sdcard/Images


      So in this way you can copy and paste any file or folder in termux.





How to delete files and folders in Termux?

        Now we see how we can delete or remove files in termux. we can delete files and folders using the delete button in the file manager. So similarly we do some commands in termux. But it is very easy to use these commands. Then you will find all the commands below which are used to remove files.


1. rm

      So now command is 'rm'. With this command, we can only delete files, not folders. So this is very easy to use. Then follow the steps given below to use this command.

1. Open Termux apk.
2. Go to the file you want to delete.
3. Now you have to enter 'rm' command and enter the name of the file you want to delete and enter.


$ rm Tajmahal.png


4. After that the file will be deleted

 

rm dir


       So now is 'rm dir' command. The use of this command is similar to the command given above. And it is also used only to delete files, and this command does not delete the folders. So you have to give 'rmdir' command and after that by giving space, you have to enter the name of the files you want to delete and enter and that file will be deleted.


$ rm dir installation.pdf



rm -rf

       So now is 'rm -rf' command. So use of this command all in one, because with this command we can directly delete files and folders. So this is very easy. To do this, you also have to do the above command. First type the command 'rm -rf' then enter the name of the file or folder you want to delete and then enter. The folder and file you entered will be deleted.


$ rm -rf Android



      So friends, you can copy, move and delete files or folders by using these commands in termux in this way. So comment if you have any questions.

        If you want to see the practical use of these commands, then watch the YouTube video above.



Follow us


YouTube channel: -  follow
Telegram group: -  follow
WhatsApp me: -   follow

WhatsApp group: - follow

English blog: -. follow

POST A COMMENT

0 Comments

Comments

Popular posts from this blog

wanan and totoths earning platform

Welcome to wanan group the place you can withdraw daily. Endless offer to gain more as days rollby. Explanation of basic plans listed above  A1 Member. Then you now need to buy a daily premium of 0.41 USDT at Wan 'an every day. Daily profit 1.03, minus daily premium 0.41 USDT. Net profit 0.62 USDT. After three days of internship, you can earn 2.27USDT. After three days, you can apply for withdrawal of internship profits to your wallet account, and the experience money will be automatically returned. If you become a regular employee now, you need to prepare a minimum of 26USDT to continue working, which can earn 18.6 USDT in a month and 226.3 USDT in a year. (Experience money is not available for withdrawal) A2A3 ------------------------------------------------- A2 Member. Then you now need to buy a daily premium of 1 USDT per day in Wan 'an. Profit of 2.5 USDT per day, minus 1 USDT per day premium. Net profit 1.5 USDT. You can earn 45 USDT in a month and 547.5USDT in a year. 63...

how to create a blog using html CSS and JavaScript

To adapt the provided HTML for Blogspot, we’ll format it so you can paste it directly into the **HTML editor** of a Blogspot post. Here's the final code: --- ### Blogspot-Compatible Code ```html How to Display Code Safely in Blogspot To display HTML, CSS, and JavaScript code in your Blogspot blog without executing it, follow these steps: 1. Escape the Code Replace special characters in your code with HTML entities: <script> alert('Hello, world!'); </script> 2. Use the Blogger HTML Editor Switch to the HTML View in Blogger's post editor and paste your escaped code there. 3. Style the Code Block Wrap the code in a <pre> or <code> tag and style it with CSS: <pre style="background-color: #f4f4f4; padding: 10px; border: 1px solid #ddd; overflow-x: auto;"> <h1>Hello World</h1> </pre> 4. Use a Syntax Highlighter (Optional) For better readability, include a syntax hig...

Understanding Padding, Width, and Margin in CSS

Sure! Here's the plain text version of your blog post about CSS padding, width, and margin , written for easy copy-pasting into the Blogspot Compose mode (no HTML tags, just text): Understanding Padding, Width, and Margin in CSS When designing web pages, understanding how elements are spaced and sized is essential. Three important CSS properties that control this are padding , width , and margin . Let's break down what each one does. 1. Padding Padding is the space inside an element, between the content and the border. Examples: padding: 10px; – All sides padding: 10px 20px; – Top/Bottom: 10px, Left/Right: 20px padding: 10px 15px 20px 25px; – Top, Right, Bottom, Left Key notes: Padding adds space inside the element. It affects the total size of the box. It does not create space between elements. 2. Width Width sets the horizontal size of the content area. Examples: width: 300px; width: 50%; – Half the width of the parent element width: auto; –...