0% found this document useful (0 votes)
4 views3 pages

Ubuntu VirtualBox Commands 9A 9C 9D

The document provides a list of Ubuntu VirtualBox commands categorized into three sections: General Purpose Utility Commands, File System Management Commands, and User Management Commands. Each command is accompanied by its usage and explanation, such as 'which' for showing command paths and 'tar' for creating archives. It serves as a quick reference for users to manage files and user sessions in Ubuntu.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views3 pages

Ubuntu VirtualBox Commands 9A 9C 9D

The document provides a list of Ubuntu VirtualBox commands categorized into three sections: General Purpose Utility Commands, File System Management Commands, and User Management Commands. Each command is accompanied by its usage and explanation, such as 'which' for showing command paths and 'tar' for creating archives. It serves as a quick reference for users to manage files and user sessions in Ubuntu.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Ubuntu VirtualBox Commands for 9A, 9C, 9D

9A - General Purpose Utility Commands

which

Command: which ls

Explanation: Shows the path of the 'ls' command.

history

Command: history

Explanation: Displays command history.

id

Command: id

Explanation: Shows the user ID (UID), group ID (GID), and groups.

lpstat

Command: lpstat -p

Explanation: Displays printer status. Install with: sudo apt install cups

lpq

Command: lpq

Explanation: Displays the print queue. Install with: sudo apt install cups-bsd

cat

Command: cat file.txt

Explanation: Displays contents of a file.

9C - File System Management Commands

cmp

Command: cmp file1.txt file2.txt

Explanation: Compares two files byte-by-byte.

tar
Command: tar -cvf archive.tar file1.txt file2.txt

Explanation: Creates a tar archive of files.

find

Command: find . -name '*.txt'

Explanation: Finds all '.txt' files recursively from the current directory.

vim

Command: vim file1.txt

Explanation: Opens file1.txt in the vim editor. Install with: sudo apt install vim

gzip

Command: gzip file1.txt

Explanation: Compresses a file using gzip.

bzip2

Command: bzip2 file2.txt

Explanation: Compresses a file using bzip2.

unzip

Command: unzip archive.zip

Explanation: Extracts files from a .zip archive. Install with: sudo apt install unzip

9D - User Management Commands

who

Command: who

Explanation: Displays who is logged in.

whoami

Command: whoami

Explanation: Shows your current username.

su

Command: su -
Explanation: Switches to the root user or another user.

sudo

Command: sudo command

Explanation: Executes a command with superuser privileges.

login

Command: Used in TTY (Ctrl+Alt+F3) session

Explanation: Logs in to a session via terminal (not in graphical mode).

logout

Command: logout

Explanation: Logs out from a terminal session.

You might also like