can save a lot of time by running multiple Linux commands at once, so you type in the same line, and separating them from the "space bar, semicolon, space," as you will see in the examples below the command.
output of each command appears on a separate line.
output of each command appears on a separate line....
For example, when you run the cd command, speed is likely to change the look and show the new current directory or a new full directory path, but there is no output for this command.
Examples of running multiple Linux commands on one line
A change in the home directory, Linux users are currently logged in as the first command below, and then run the command pwd to see the "path to working directory" for your current directory.
- $ cd ~; zap
In most Linux distributions, your home will put the directory / home / username , where username is the name users who are currently logged in as.
However, if you are logged in as root user, what is the name of Linux administrative user, your home will be / root.
If you work at the command prompt from the Linux desktop as the root user, run the following command to "log off" and work as a "regular" (non-root) users to see their current full directory path.
- $ output; zap
If you use Red Hat, Fedora, SuSE, Debain and many other Linux distributions, but not Ubuntu or variations of Ubuntu, like Kubuntu or Edubuntu, and then run the following command su (with a dash of options) to start work at the command line prompt as root user.
Run "su -" (without the quotes), then you will need to enter the root user password and press Enter. This command must be run with no other commands in the same row.
the right character in your command line prompt, probably changed from $ to # specify the work as the root user - or changed from> to # if you use SuSE, openSUSE or any Linux distribution.