Computing

Computers and information management topics

I'm unclear how well any of this works, but for reference some ideas around wifi power control in Linux.

First, create the file to be used. It should be a single block on the drive. This will create a file (swapfile) of size 100 MB as a large block.

dd if=/dev/zero of=/swapfile bs=1024 count=100000

Next, add the newly created file to the swap pool.

mkswap /swapfile

Finally, turn on the new swapfile.

swapon /swapfile

Now you have 100 more Mbytes of swap memory.

dmidecode is a tool for dumping a computer’s DMI (some say SMBIOS) table contents in a human-readable format. Generally this will include all the important hardware in the computer.

lspci is a utility for displaying information about all PCI buses in the system and all devices connected to them. In particular, lspci -vvv can be very useful displaying information about many hardware items in the computer.

Some other basic commands that provide information on the hardware Linux is running on.

Solution 1

cat /etc/issue

Solution 2

lsb_release -a or cat /etc/lsb-release

Use the update-alternatives command.

In a terminal window and type in the following command:

sudo update-alternatives --config editor

Here's an example of what you'll see:

$ sudo update-alternatives ––config editor

There are 5 alternatives which provide `editor'.

  Selection  Alternative
––––––––––––––––––––
           1 /usr/bin/vim
           2 /bin/ed
        *+ 3 /bin/nano
           4 /usr/bin/vim.basic
           5 /usr/bin/vim.tiny
Press enter to keep the default[*], or type selection number: