I want to open header file in /usr/local/include. How to open it by terminal?
10360
There is a file named RESULTS.txt and I want to open this file in my terminal. (I mean I want to see the file contents be displayed in the terminal and not in some text editor)   How do I do that ?
60999
Whatever I try to run, I get the error:   The command could not be located because '/usr/bin' is not included in the PATH environment variable.   I had some modification in my .bashrc file but then removed the two additional lines afterwards. However somehow the PATH variable seems to have been destroyed.
86208
I want to Open a new Terminal in from within terminal.  It should have Shell prompt as well as already run few commands.  How to do it ?
73345
I was wondering if there was any was I could right click inside any instance of a "Finder" window such that I have an option that says "Open Terminal Here". It would be really helpful.
42422
It's my second post here, i have a huge problem which prevents me to study so i have to fix it as soon as it's possible ! My gcc was working fine and i had to work on FairThreads (in C). I downloaded the following archive :  As you can see, in /src there's a makeFile, i replaced the second line which was : LIB_DIR     = ../lib  by LIB_DIR     =  /usr/bin/ld and i compiled the makeFile by the command &quot;make&quot; And now, i cannot compile any c/c++ program anymore. Even a hello world program. I got the following error message on the terminal for every compiling attempt : /usr/bin/ld: 2: /usr/bin/ld: Syntax error: newline unexpected collect2: error: ld returned 2 exit status  I have found on the net this solution but it doesn't work for me : sudo apt-get autoremove binutils     sudo apt-get install binutils  I also tried to reinstall gcc, when executing : sudo apt-get purge gcc   i got : Des erreurs ont été rencontrées pendant l'exécution :   linux-firmware   linux-image-generic-hwe-18.04   linux-generic-hwe-18.04 E: Sub-process /usr/bin/dpkg returned an error code (1)  but when i trie a gcc --version it tells me that it is not found. So when i execute the command to reintall it : sudo apt-get install gcc   i also get : Des erreurs ont été rencontrées pendant l'exécution :  linux-firmware  linux-image-generic-hwe-18.04  linux-generic-hwe-18.04  linux-image-5.4.0-72-generic  initramfs-tools E: Sub-process /usr/bin/dpkg returned an error code (1)  but gcc --version tellls that it's installed. Finally, when i trie to compile a program, i got : /usr/bin/ld: 2: /usr/bin/ld: Syntax error: newline unexpected collect2: error: ld returned 2 exit status  I hope that i explained well, and i'll get a solution for this :/, as a computer science student, i can't do anything without gcc :( EDIT 1 : When i try to remove bin/ld by executing : sudo rm -fr /usr/bin/ld;sudo apt-get install --reinstall binutils  i got : Des erreurs ont été rencontrées pendant l'exécution :  linux-firmware  linux-image-generic-hwe-18.04  linux-generic-hwe-18.04  linux-image-5.4.0-72-generic  initramfs-tools E: Sub-process /usr/bin/dpkg returned an error code (1)  and this particular error message : WARNING: no ldd around - install libc-bin  EDIT : I have installed ldd by the command : sudo apt-get install libc-bin  still no changes...
68109
I edited a file in  /etc/ that I want to save, but forgot to open it using sudo. I remember there was a command to save such a file in vi, and want to know if there is any such way to do it in nano?  Thanks.
70300
What is the difference between using #include&lt;filename&gt; and #include&lt;filename.h> in ? Which of the two is used and why is it is used?
42132
I’m using Mac OS X Yosemite and I want to be able to open Sublime Text 2 from the terminal with a command like this:  sublime .   I’ve typed this into terminal   ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/sublime   And also this variant:  ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/sublime   In the terminal, if I type in:  echo $PATH   I get:  /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin   I’ve tried editing my .bash_profile, right now it’s blank  After all this, I try sublime . and get the following error:     -bash: sublime: command not found   I’m completely new to Mac OS X, and terminal configuration, and am really struggling to figure out why I can't get it to work so any help would be appreciated.
13709
I need to rename the following:  file_001_loremipsum.png file_002_dolor.png file_003_sit.png file_004_amet.png file_105_randomness.png   into  upl_loremipsum.png upl_dolor.png upl_sit.png upl_amet.png upl_randomness.png   How do I make it happen with just one simple line of terminal command?
14819
How can I change prompt name seen at terminal?  my prompt :  &lt;user_name&gt;@&lt;user_name&gt;-MEGA-BOOK-VR320:~$   It is too long. I want to change it to:  gcc :    However, I should see the path when I go from one directory to another.  gcc :~$ cd X_directory gcc :~/X_directory$   How can I do that, permanently?
38606
The man command brings up a nice manual for many programs, but how can I use it more effectively? For example man gcc brings:  NAME        gcc - GNU project C and C++ compiler  SYNOPSIS        gcc [-c|-S|-E] [-std=standard]            [-g] [-pg] [-Olevel]            [-Wwarn...] [-Wpedantic]            [-Idir...] [-Ldir...]            [-Dmacro[=defn]...] [-Umacro]            [-foption...] [-mmachine-option...]            [-o outfile] [@file] infile...         Only the most useful options are listed here; see below for the        remainder.  g++ accepts mostly the same options as gcc. .... many text   But what if I need only some part of it? What is the best way to jump to the section where -Idir is described, for example?
123729
I am trying to add terminal as external tool to compile javascript with node.js. I am following this  which is based on windows , and i am stuck at figuring out location of terminal application.  Where is the terminal located in Ubuntu?
2869
I used to work on the Mac terminal before and I used:   open file2open.pdf   and the PDF file would be opened on preview or whatever my default viewer was. When I use it in the terminal in Ubuntu I get this error message:   Couldn't get a file descriptor referring to the console
115281
When I type man bash it shows the info in the terminal itself.  How do I tell "man" to open up the info in gedit instead? Is this possible?
23740
How can I create a keyboard shortcut so that when I press F12 in nautilus (or desktop), I get a terminal in the current directory?
38711
gedit is set by default to open about any source file. I've gone through the file properties and changed default application to VIM for C and C++ files.  I'd need to do this for any source file I open now, for python files, for text files, for ruby, any, since gedit is set to open all of them.  How can I change this to open with VIM without going the hassle of setting "open with" one by one?
86241
I have defined my own custom vim file type with highlighting etc.  I would like to open it using the terminal based vim when I double click on it.  I am using mac os x.  Any pointers on how to start on this?