In Android, a fragment owns a specific app bar. If it is not the same for each fragment, the activity can interact with the app bar. In Android, a fragment can override certain methods in the framework when creating its fragment. The following code demonstrates how to use a different toolbar for different fragments in …
Others
To learn how to unzip a RAR file on Linux, you’ll first need to know the file format itself. Roshal Archive (RAR) files are designed to archive and compress data. You’ll need a program to open and unzip these files, called unrar. While most Linux systems do not come with unrar preinstalled, you can find …
If you are a beginner in Linux, you might be wondering what the reboot command does. Basically, it powers off the computer and restarts it from the previous state. The reboot command is invoked by typing the shutdown command with the -r option. You can also use the -f option to force the reboot, which …
If you’ve ever run into a situation where you’d like to install a program but aren’t sure how to get around the Run as Administrator prompt, you’re not alone. Many programs will warn you that you need to run as the administrator, or the root user, and will stop working. You can make changes to …
If you’re a system administrator, you probably want to monitor your disk space usage. If the disk space is low, you’ll be unable to connect to the host or run commands. There are several ways to monitor the disk space of your Linux machine. Fortunately, Linux has many easy to use command lines, which you …
You can easily switch your Ubuntu user to root temporarily by using the sudo command. To do so, add the new user to the sudo group. If the new user does not have sudo privileges, you must provide a password for it. Once the user has access to sudo, you can run any command as …
You can use the cd command to change your current directory. When you run this command, you will be returned to the home directory. Alternatively, you can type “cd to” and it will open the current directory. Once you have changed your current directory, you can use the ls command to see what’s inside. You …
To rename a directory, use the rename command. It can change the name of many directories at once. This command is part of the Linux System Administration and is not available by default. The find command is also useful for renaming directories. It can be used to switch to the home directory. This can be …
If you have ever wondered what Xorg does in Linux, you’re not alone. Xorg is the core of the desktop infrastructure for Linux and provides the interface between software and hardware. It’s fully network aware, allowing you to run applications on a variety of systems. This program is also a key component of Mac OS …
The Snap command is a command used to run third-party scripts. It can read from a file or specify the script itself as a parameter. The name of the script can be specified as a single word, or a list of words enclose in quotes. The first parameter represents the script name, and subsequent words …