How to run “bundle install” as root
Posted by Alex On February 20, 2021
The “bundle install” command does not allow you to run it as root. For example, the following sequence of commands will fail: gem update --system xcode-select --install gem install nokogiri bundle install The last command will show an error: Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing […]
Warning: apt-key is deprecated (SOLVED)
Posted by Alex On February 20, 2021
The apt-key command manages keys that are responsible for verifying the signature of application package repositories. Now, whenever you use the apt-key command, you will receive the message: Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)). It means that the apt-key program is now deprecated. Now we should use trusted.gpg.d to […]
Instructions for using the file command
Posted by Alex On February 20, 2021
How to find out the type of a file without an extension or with the wrong extension The file command can determine the file type for regular files and the file system used for disks. The file utility uses magic bytes. The bottom line is that files of the same type have the same bytes […]
How to split a large file (text or binary) into smaller files (SOLVED)
Posted by Alex On February 20, 2021
split command instructions I have a large (by the number of lines) text file that I would like to split into smaller files, also by the number of lines. So if my file has about 2 million lines, I would like to split it into 10 files containing 200k lines, or 100 files containing 20k […]
Why are channels between 64 and 100 unavailable on 5 GHz Wi-Fi? (SOLVED)
Posted by Alex On February 19, 2021
With the command iw list you can see what frequencies your Wi-Fi card supports. Output example: One more example: The set of channels is slightly different, but in any case, frequencies in the range of 64-100 channels are completely unavailable. That is, they are not even disabled, but no matter how they simply do not […]
How to prevent NetworkManager from managing a specific interface? (SOLVED)
Posted by Alex On February 19, 2021
NetworkManager is a Linux service that manages various network interfaces, including physical, such as Ethernet and wireless, and virtual, such as VPN and other tunnels. Network Manager can be configured to manage some or all of the system interfaces. NetworkManager has a graphical interface - this is the applet that opens when you click on […]
How to know when the ext4/ext3/ext2 filesystem was created and when it was last mounted
Posted by Alex On February 19, 2021
How to know when the ext4/ext3/ext2 filesystem was created The ext4, ext3, and ext2 file systems store their creation date. This date can be the first day the disk was used or the day it was last formatted. You can find out the day the file system was created using the tune2fs and dumpe2fs utilities. […]
How to find out the number of starts and the total working time of a disk in Linux
Posted by Alex On February 19, 2021
You can find out how many hours any hard drive or solid state drive has run. You can also view information about the number of times the disc has been turned on. Some discs store information about the total amount of data read and written, as well as unexpected shutdowns (for example, due to a […]
The in-memory file system - how to use tmpfs
Posted by Alex On February 19, 2021
The tmpfs file system is quite useful, as it is incredibly fast and can help reduce the load on your persistent storage (especially useful for those who have Linux installed on a flash drive or memory card). tmpfs is an in-memory virtual file system. The tmpfs tool allows you to create file systems whose content […]