This is all termux / Linux basic and useful command, with the help of these commands, your basic concept of Linux will be cleared, so read the entire command thoroughly.
1. mkdir for create directory use command mkdir dir_name
2.ls to view directory and files on command line use command ls
4. cd for changing directory use command cd "dir_name"
5. cd .. this command used for return back from current directory for example if i m in current directory download the i used command cd .. to return back from download directory.

6. cd /sdcard this command used for changing the dirctory to sdcard.
sdcard means the internal storage of your device

all the files and folders of the internal storage shows by using command 'cd /sdcard'.
7. mv this command use to move files from one path to another path by using 'mv' command
mv /path/file /path where file is moved.

here i m moving a text file to termux $HOME directory.
8. mv -v this command used for moving non-empty directory,means the directory which contains file,pictures etc for such type of directory we can use 'mv -v'
for example :- mv -v /path/directory /path where to move directory .

see the examples on the picture moving directory pictures to termux $HOME directory.
9. cp to copy any files to one directory to another directory ,use command cp
example:- cp /path/file /path where to copy file.

as shown on the picture ,copying command.txt file to termux $HOME directory.
10.cp -R this command is used for copied non-empty directory to another directory ,we can use this command 'cp -r'
for Example: cp -R /path/directory /path where to copy non-empty directory.
for Example: cp -R /path/directory /path where to copy non-empty directory.

11.rm this command is used for remove any single files for example : i have to remove a text file by using 'rm' command i can remove this file as shown on the piccture.

12.rm -rf this command is used for remove non-empty directory for example i have a non-empty directory pictures and i want to remove this directory by using this command i can remove this directory as shown on the picture.

13.ping The ping command helps to verify IP-level connectivity. When troubleshooting, you can use ping to send an ICMP echo request to a target host name or IP address. Use ping whenever you need to verify that a host computer can connect to the TCP/IP network and network resources.

for example : using ping command to check google ip"s.
14.ctrl +C to stop any program [ctrl+c means your device volume down button and click on C from your phone keyboard].

15.ifconfig this command is used for check your device ip address by using ifconfig command as shown on the picture .

16. clear this command is used for clear the terminal
17.find this command is used for finding files and directory from the terminal
18.exit for exit the terminal or use ctrl+d






0 Comments