Skip to main content

Posts

Showing posts with the label commands

How to create multiple sub-directories in one command from Windows, Linux

In Windows we use the following commands to create a single long path directory and multi-long path directory. Single long path directory md dir-name\dir-name1\dir-name2\...... for eg: md 1\2\3\4\5\... Here single long path directory will be created, which means inside folder "1", folder "2" will be created and inside that folder "3" will be created and goes on... Multi-long path directory mkdir -p dir-name\dir-name1 dir-name2\dir-name3 dir-name4\dir-name5 for eg: mkdir -p 1\2 3\4 5\6 Here multiple long path directory will be created, which means inside folder "1" folder "2" will be created and folder "1" would be the parent folder for this path and inside folder "3" folder "4" will be created and folder "3" would be the parent folder for this path and goes on. In Linux we use the following command to create multiple folders and sub-folders. mkdir -...

How to recover Ubuntu System from suspend mode

Types of Suspend standby – Standby offers little power savings, but restoring to a running system is very quick. This is the default mode if you omit the -m switch. mem – Suspend to RAM. ... disk – Suspend to disk. ... off – Turn the computer off completely. ... no – Don't suspend the computer immediately, just set the wakeup time. What is suspend mode in Ubuntu? Suspend mode is a special low-power mode, often used on laptops, that preserves the contents of RAM while conserving power. There are two main forms of suspend - suspend-to-RAM and suspend-to-disk (also known as "software suspend" or "hibernation"). Suspend-to-RAM uses more power, but is almost instant How do I turn off auto suspend in Ubuntu? Install gnome-tweak-tool: sudo apt install gnome-tweak-tool. Run gnome-tweaks . Change the option under "Power" for "Suspend when laptop lid is closed" to "off". How to Enable Hibernate in Ubuntu Test if hibernate wo...

Ways To Determine The Type Of Drive (HDD or SSD) Installed In Your System

The hard drive is an important component of a computer as it permanently stores all the data that is processed by the CPU. The hard drive is usually the slowest component in the computer but it can be faster if you select the right kind of hard drive. There are different types of hard drives. The old hard drives were hard disk drives (HDD) which are still abundantly used because they are cheaper as compared to other alternatives. The newer kind of hard drives are Solid State Drives (SSD) which are expensive but are a lot more faster than HDD. SSD HDD Today we will discuss about how to detect which type of hard drive has been installed in your computer. There are quite a few ways of determining the drive type in Windows some as follows. 1. Through the command msinfo32 It is an in-built tool in windows xp, windows vista, windows 7, windows 8, windows 8.1 and windows 10 has a simple command to display system summary or system information. Which includes Hardware...

Resource | Performance monitor in windows

Resource Monitor: Short form for Resource Monitor, Resmon is a feature introduced with Windows Vista that enables users to view real-time resource information about software and hardware on their computer. It shows things like memory, disk, CPU and network performance, as well as which software handles and file modules are working. Go to run and resmon in the box and press enter, as given below. resmon command in run  Below is an example of the Windows Resource Monitor in Windows OS and type of information it provides to users. Resource monitor UI Each tab in the Resource Monitor provides different information. Overview - Provides a quick look at CPU usage, memory usage, disk activity, and network activity. Clicking on and expanding each gray bar provides data for that category. CPU - Displays a list of processes running on the computer, how many active threads they are using, and the percentage of CPU resources being utilized Memory - Displays a li...

Background job handler in linux | Unix

On Unix-like operating systems, bg is a job control command. It resumes suspended jobs in the background, returning the user to the shell prompt while the job runs.  The presence of bg is required for a shell to comply with the POSIX standard. POSIX: Short for Portable operating system interface for Unix, POSIX is a set of IEEE and ISO standards that define how Unix operating systems operate with one another and the command structure. This document covers the bash built-in implementation of bg. Syntax bg [job] Options job         Specifies the job that you want to run in the background. Job number 1 is referred to as %1, job number 2 is referred to as %2, etc.; %, %+, or %% refers to the current job; %- or - refers to the previous job. Examples In this example, let's assume we are in the bash shell. If you initiate a process at the command line, and you want to return to the command line prompt before the program is finished executing to ...