Where can the devices.txt file be found in Linux?

I am trying to find the kernel documentation within Linux, in particular the ‘devices.txt’ file which has a list of driver and device major and minor numbers, i will be needing this while using the mknod command for personal use. im not looking for an online version instead im looking for the actual file in debian.

If anyone has any idea in which directory i can find this file in please let me know.

This is what im looking for looks like: https://github.com/torvalds/linux/blob/master/Documentation/admin-guide/devices.txt

comando java -version no linux mint 19.1 me mostra o resultado errado

então, eu sou novato no linux e não sei bem como instalar o jdk, mas segui o passo a passo deste tutorial aqui: https://novicestuffs.wordpress.com/2017/04/25/how-to-install-java-on-linux/ Antes disso, eu ja tinha desinstalado o opendJDK que ja vem com o linux.

Em fim, eu não sei exatamente onde eu errei no tutorial, o problema que eu tenho é que quando vou verificar a versão do java instalado(java -version), no terminal aparece a versão javac: javac 1.8.9_201

E o comando javac aparece corretamente. Mas é isso, não consigo ver qual minha versão do java, alguém pode me ajudar?

Eu estou utilizando o linux mint MATE 19.1

Could Intel SGX be dangerous under Linux?


Question Background

This morning, by accident I have found, that there is basically a backdoor in a dormant state in my Dell laptop: Computrace, which comes from Absolute Software – link to their Web, link to Wikipedia.


Actual Question

Since I read some UEFI/BIOS setting can’t be changed once set already, I wonder if such practice is also the case in Intel SGX technology, which I probably would like to disable too since I’ve seen from this Linux shell script that SGX is Enabled in my system configuration and then proved by looking into UEFI/BIOS, where it’s currently set to Software Controlled, I would like to ask if having SGX enabled or software-controlled is a bad practice, or worse – Could Intel SGX be dangerous under Linux?

Uso de Perl no linux

Estava dando uma olhada no código fonte do linux e percebi que existe uma enxurrada de scripts feitos em Perl, dai surgiram algumas duvidas

1) Por que o codigo fonte do linux usa tanto essa linguagem em seus scripts ?

2) E so preferencia pessoal ou existe algum vantagem no uso dessa linguagem no linux ?

Making a command line program on linux (Raspbian or Ubuntu)

My objective is to make a program that can be installed and then operated using Terminal.

For example,

  1. Pip is installed
  2. We write pip install numpy in the terminal, and numpy is installed.

Challenges I’m facing:

  1. We write pip in terminal or command line and it understands what pip is. I can’t think of a way to get this done.

  2. Once the above objective is completed, I need to pass multiple arguments like instead of install numpy it will look like set color 4.

The language I’m working on is Python and the OS is Raspbian.

Unfortunately, I have no idea if there exists a terminology for such problems, feel free to edit.

How to keep track of the installed software/system configuration to restore after a fresh linux install?

I have been thinking of writing some sort of utility for linux that keeps track of all my installed software and configuration. Something that after doing a fresh install I can just run it and will restore my copy of ubuntu as it used to be before doing the fresh install.

I do not know exactly where to start with this. I know that you can get a list of user installed software from dpkg -i | grep ii.

I would really appreciate any suggestions.

Error al instalar módulos con pip (python) en Linux

Tengo un problema con las dos versiones de python (2.7 y 3.6), al intentar instalar módulos con el comando “pip” y “pip3”.

pip install flask-mysqldb 

Este es el error:

Command "/usr/bin/python3 -u -c "import setuptools,  tokenize;__file__='/tmp/pip-build-  yuno57tn/mysqlclient/setup.py';f=getattr(tokenize, 'open', open)  (__file__);code=f.read().replace('\r\n',  '\n');f.close();exec(compile(code, __file__, 'exec'))" install --  record /tmp/pip-p5is4qs3-record/install-record.txt --single-version-  externally-managed --compile --user --prefix=" failed with error code  1 in /tmp/pip-build-yuno57tn/mysqlclient/ 

Antes me mandaba este error:

Command "python setup.py egg_info" failed with error code 1 in  /private/var/folders/v9/5n8070c96854w3mhd9knc73w0000gn/T/pip-build-  zZTmYY/fbprophet/ 

Después instale “libmysqlclient-dev” y actualice el modulo ‘setuptools’ y me mando el error anterior. ¿Alguien sabe porque?. Gracias.