120 Answered Questions for the topic Linux

Linux Java


Error: Could not find or load main class?

I am having trouble compiling and running my Java code, intended to allow me to interface Java with a shared object for Vensim, a simulation modeling package. The following code compiles without... more
Linux C Unix


Why does ENOENT mean "No such file or directory"?

What is "ENT" short for? The `error` : >No such file or directory should just be named by "ENOFILE". Is there any story or reason?
Linux Unix Syntax Bash


How do I syntax check a Bash script without running it?

Is it possible to check a bash script syntax without executing it? Using Perl, I can run `perl -c 'script name'`. Is there any equivalent command for bash scripts?
Linux C++ C Api


What is Linux’s native GUI API?

I hope this doesn’t come across as a stupid question but it’s always something I have wondered. Both Windows (Win32 API) and OS X (Cocoa) have their own APIs to handle windows, events and other OS... more


Why does the C preprocessor interpret the word "linux" as the constant "1"?

Why does the C preprocessor in GCC interpret the word `linux` (small letters) as the constant `1`? test.c: #include int main(void) { int linux = 5; return 0; } Result of `$ gcc -E... more

Will Photoshop run on Linux?

I have installed Photoshop on Linux using wine. It's crashing again and again. Is there any way to use Photoshop on linux?
Linux Unix Ssh


How to download a file from server using SSH?

I need to download a file from server to my desktop. (UBUNTU 10.04) I don't have a web access to the server, just ssh. If it helps, my OS is Mac OS X and iTerm 2 as a terminal.
Linux Unix Bash Path


How to permanently set $PATH on Linux/Unix?

I'm trying to add a directory to my path so it will always be in my Linux path. I've tried: export PATH=$PATH:/path/to/dir This works, however each time I exit the terminal and start a new... more


How to convert Word (doc) to PDF in linux?

I have a set of files in **.doc** format, that need to be converted to **.pdf** format. I am using Ubuntu linux.


How do I get cURL to not show the progress bar?

I'm trying to use cURL in a script and get it to ***not*** show the progress bar. I've tried the `-s`, `-silent`, `-S`, and `-quiet` options, but none of them work. Here's a typical command I've... more
Linux Java Install Wget


Downloading Java JDK on Linux via wget is shown license page instead?

When I try to download Java from Oracle I instead end up downloading a page telling me that I need agree to the OTN license terms. > # Sorry! > > In order to download products from... more
Linux Unix Grep


How do I grep recursively?

How do I recursively `grep` all directories and subdirectories? find . | xargs grep "texthere" *


How to find out what group a given user has?

In Unix/Linux, how do you find out what group a given user is in via command line?


How to join multiple lines of file names into one with custom delimiter?

I would like to join the result of `ls -1` into one line and delimit it with whatever i want. Are there any standard Linux commands I can use to achieve this?
Linux Unix


Using ls to list directories and their total sizes?

Is it possible to use `ls` in Unix to list the total size of a sub-directory and all its contents as opposed to the usual 4K that (I assume) is just the directory file itself? I.E. total 12K ... more


grep, but only certain file extensions?

I am working on writing some scripts to `grep` certain directories, but these directories contain all sorts of file types. I want to `grep` just `.h` and `.cpp` for now, but maybe a few others in... more
Linux Unix Bash Shell


How to run a shell script on a Unix console or Mac terminal?

I know it, forget it and relearn it again. Time to write it down.

How to run "hello, world!" assembly language program?

How do I assemble, link, and run the "hello, world!" assembly language program, and get the output using these steps:  1)  as testme.s -o testme.o2)  gcc testme.o3)  ./a.out   I am new to this... more


Linux file manager that can both sort and group

I was using Windows and i miss this file manager feature when you was able to group files by type and sort it by date (both at the same time)   like here:... more
Linux Sql Server


create a view in sql server reading from a linux server informix database using ODBC connection

how can i create a view in sql server reading from a linux server informix database. I'm using an ODBC connection

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.


Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.