Useful Android Terminal Commands You Should Know

Useful Android Terminal Commands You Should Know
Useful Android Terminal Commands You Should Know

If you are a developer, then it is important that you remember some commands that you can use in the terminal emulator. When you try to remember these commands, you need to understand that most of these commands are similar to Linux commands, so if you know shell programming adequately, then you have to remember the command and There will be no hard time using them at that time.

If you have a terminal emulator for Android then there is not a complete list of commands, please visit this link page.

These are some of the commands that you should always remember and they can be really simple:


cat

This is a command that can help you view, combine or modify the file. You can read the file in addition to opening it and copy the content of that file to a new file.


chmod

It's a very interesting command to use. You can actually control file privacy with this command. There are 3 types of file rights, read, write and execute. You can grant permission to some user or can cancel the permission with this order.


cd

The cd command, also known as chdir, is a command line OS shell command that is used to replace the existing working directory of the operating system. These shell scripts and batch files are available for use. On most operating systems, the command is affected by the system call chdir, which is defined by POSIX.


cp

The cd command to copy files and directories. There are three main methods of operation in the command, to copy a file to another file, type of arguments presented in the program, one or more files in the directory, or to copy the whole directory to another directory Are there.


dd

You can copy a folder or drive completely to a new location with this command. The device driver for hardware and special device files looks like a normal file like the file system; dd can also read and/or write these files, but the work has been applied to their respective drivers. As a result, dd can be used to back up the boot sector of the hard drive and get a certain amount of random data, such as for functions. The dd program can also convert data as it has been copied, which includes conversion of byte order swapping and ASCII and EBCDIC text encoding.


exit

This command is to exit the terminal. The order is open or the program is terminated. If an interactive command is made within the shell, then the user logs out of his current session, and/or the user's current console or terminal connection is disconnected. Generally, an optional exit code can be specified, which is usually a simple integer value that is then returned to the original process. You can use su to get back the login screen again.


ls

This will give you a list of all the directories present in the file system.


mv

This command is for copying a file to another location. mv command that moves one or more files or directories from one place to another. If both filenames are on the same file system, the result is in a simple file name; Otherwise, the file content has been copied to the new location and the old file has been deleted. To use mv, the user is allowed to write for those directories, among which the file will be transferred. This is because the content of the two directories contained in the mv moves varies. When using the mv command on files located on the same file system, the file's timestamp is not updated.


su

Su option stands for the user. And you can switch between the original user and the original user.


tar

It is to create zip files. It can also support complex compression conditions.


rm

This is basically for backup. rm command removes references to objects from the file system using the unlink system call, where there can be many references in those objects and objects are discarded only when all the references are removed and in any program, There are still open handles for objects. This allows scenarios where a program can open a file, remove it from the file system immediately, and then use it for a temporary location, knowing that the file will be reclaimed after exiting the program, Even if it is out of a crash. rm usually does not delete file data, because its purpose is to actually unlink only the references, and if the file system location is free, there may still be data left with the deleted file. This may be a safety concern in some cases, and the harsh versions sometimes provide data to erase because the final link is being deducted, and programs like credit and srm are available, which are specially capable of data wiping Offer. Before you reboot, you can do it. Be sure to ensure that you have saved every data or not.

Some special commands to remember:

Well, except for the above-mentioned commands, you must also remember these special commands.


df

This is to check the free disk space available in your mobile device


top

It is to check the Task Manager and examine ongoing procedures.


uptime

This command shows you the time for which the device is working without a reboot.


busy box 

This command is very useful. BusyBox is a software that provides many different Unix tools in a single executable file. It runs in a variety of POSIX environments such as Linux, Android, and FreeBSD, although these tools are designed to work with interfaces provided by the Linux kernel. It was specially created for embedded operating systems with very limited resources. The authors called it "the Swiss Army Knife of Embedded Linux" because the single executable replaces the original functions of more than 300 normal commands. It has been released as a free software under the GNU General Public License v2.


Conclusion

Therefore, as it stands, you can use the terminals for a good reason, but you have to remember the code or command. If you are adequate to take care of the command and if there is no requirement then there is no need for helpers, therefore, get the Android terminal today and enjoy the commands you can remember.

Post a Comment

0 Comments