HowTo: UNIX Set Date and Time Command

In Unix-like operating systems, the date and time can be set using the date command. To set the date and time, you need to have superuser privileges. Here’s the basic syntax for setting the date and time using the date command: sudo date –set=”YYYY-MM-DD HH:MM:SS” Replace YYYY-MM-DD with the desired year, month, and day, and … Read more

Linux Rename File Command

The mv command is used to rename files in Linux. The basic syntax is: mv [existing_file_name] [new_file_name] For example, to rename the file oldfile.txt to newfile.txt, you would run the following command: mv oldfile.txt newfile.txt Note that the mv command can also be used to move files from one directory to another. In this case, … Read more

Mount CD-ROM in Linux

To mount a CD-ROM in Linux, you need to perform the following steps: Insert the CD-ROM into your CD/DVD drive. Create a mount point directory, which is the directory where the CD-ROM will be accessible. For example: mkdir /mnt/cdrom Use the mount command to mount the CD-ROM. For example: mount /dev/cdrom /mnt/cdrom Note that /dev/cdrom … Read more

Use export Command in Linux / Unix

The export command is used in Linux/Unix to set environment variables, which are used to store values that can be referenced in various shell commands and scripts. To set an environment variable using export, simply type the following in your terminal: export VARNAME=value Replace VARNAME with the name of the environment variable, and value with … Read more

Ubuntu Linux: Show Gnome Version

To show the version of Gnome on an Ubuntu Linux system, you can use the following command: gnome-shell –version This will display the version number of the Gnome shell, which is the graphical user interface component of the Gnome desktop environment. For example: GNOME Shell 3.38.2 Alternatively, you can also use the lsb_release command to … Read more