"Couldn't Find a File Descriptor Referring to the Console" on Ubuntu Bash on Windows

Error in linux console : Couldn't get a file descriptor referring to the console

setfont modifies the font in the VGA console (what you get when you press CTRL-ALT-F1, etc) It won't do anything in Terminal.

Normally only the root user can access the console device that setfont needs to connect to in order to make the font change. This is why you get an error message when you run it from your normal user account. An exception is when a user is logged into the VGA console... then the user has access to the console and setfont succeeds.

The fact that you get the error message whenever you start Terminal, means that you likely have some command in your .bashrc, .bash_profile, .bash_login, .profile or /etc/profile that is run whenever you start a terminal. Could it be that you have setfont in one of these places? otherwise, look for something else that may be accessing the console.

Couldn't get a file descriptor referring to the console while trying to open filestructure of laravel using terminal

Try to use:

gnome-open .

It should work in Ubuntu.

http://www.cyberciti.biz/faq/bash-shell-open-gnome-nautilus-file-manager/

how to read sh files on Ubuntu built in Windows 10 developer mode

You home directory in bash is

c:\Users\<Windows User>\AppData\Local\lxss\home\<linux_username>\

UPDATE:

sorry, I misread your question, you have a problem seeing these files from bash, when they are saved by Windows. I'm not sure how exactly this works regarding home folder, but you can access any Windows files from bash using filesystem in /mnt/

So the above would be /mnt/c/Users/<Windows User>/AppData/.... etc

UPDATE 2:

Here is more information about the problem - https://superuser.com/questions/1083962/windows-linux-subsystem-accessing-files-outside-of-ubuntu
Basically, confirming what I said above - you have to use /mnt/



Related Topics



Leave a reply



Submit