Questions tagged [user-interface]

88 questions
69
votes
5 answers

getopt, getopts or manual parsing - what to use when I want to support both short and long options?

Currently I'm writing a Bash script which has the following requirements: it should run on a wide variety of Unix/Linux platforms it should support both short and (GNU) long options I know that getopts would be the preferred way in terms of…
helpermethod
  • 1,952
  • 2
  • 19
  • 25
44
votes
3 answers

What is a "modeless" vs a "modal" editor?

I just started learning Linux and all my previous experience of programming has been using the Windows platform. I came across Vim editor and read that it is modal editor unlike notepad which is termed as a modeless editor. Can you please explain…
Geek
  • 6,548
  • 15
  • 46
  • 70
33
votes
4 answers

What does the error "X is not in the sudoers file. This incident will be reported." philosophically/logically mean?

Along side the question "Username is not in the sudoers file. This incident will be reported" that explained the programical aspects of the error and suggested some workarounds, I want to know: what does this error mean? X is not in the sudoers…
Mazdak
  • 933
  • 2
  • 7
  • 18
31
votes
4 answers

How to switch to the directory listing from file view in vim?

I have opened a dir vim some/dir. I can navigate within the tree, yet once I opened a file I wonder, how do I close the file view in order to go back to the directory listing to navigate to another file. :wq is no option, as it closes the whole vim…
k0pernikus
  • 14,853
  • 21
  • 58
  • 79
24
votes
3 answers

Why is cp's option not to overwrite files called --no-clobber?

cp is a massively popular Linux tool maintained by the coreutils team of the GNU foundation. By default, files with the same name will be overwritten, if the user wants to change this behaviour they can add --no-clobber to their copy command: …
TZubiri
  • 393
  • 2
  • 10
15
votes
3 answers

'OS X-like' momentum scrolling in linux?

Is there a way to make the scrolling on a linux machine (running X11) more like OS X's natural scrolling? With 'natural scrolling' I mean the fact that you can flick trough the pages, there is momentum in the scrolling. I have a macbook running Arch…
romeovs
  • 1,660
  • 5
  • 21
  • 33
14
votes
8 answers

Why is the terminal case-sensitive?

When I do - CD .. instead of cd .. it gives me error saying - CD: command not found Why is the terminal case sensitive when it comes to linux commands? I mean you should be able to execute the command either with "all uppercase" or "all…
Hussain Tamboli
  • 1,085
  • 3
  • 14
  • 21
14
votes
10 answers

What linux is best suited for people new to computers?

What would be the easiest linux for people who are new to computers? The computers here have 256Mb RAM with 40GB hard-disks. UPDATE: Most of them apparently have more than 265MB of RAM with some having 1GB. I've installed Linux Mint Debian Edition…
S P
  • 249
  • 2
  • 7
11
votes
1 answer

Cause `less` to exit with a non-zero status code?

I would like to have the following command structure: command && check-status | less && followup-command This would pause the execution while the user interacted with less. How can the user force less to exit with a non-zero status to prevent…
user2943160
  • 537
  • 2
  • 5
  • 10
11
votes
2 answers

Prevent the Gtk file dialog from listing mount points

When I open the Gtk file dialog, there is a box called “Places” on the left-hand side which lists “Search”, “Recently Used”, a bunch of directories, and several things that appear to be volumes. I don't care about any of these entries, but for the…
Gilles 'SO- stop being evil'
  • 807,993
  • 194
  • 1,674
  • 2,175
10
votes
1 answer

CTRL+C: copy or interrupt

In both Linux and Windows CTRL + C has two very different meanings, depending on what program you use. In some programs (mostly GUI programs) it means "copy" whereas in other programs (almost all command line tools) it means "interrupt" or…
Dakkaron
  • 1,997
  • 2
  • 16
  • 25
7
votes
2 answers

Entering Unicode characters by name

Emacs has the insert-char feature: You press a key combination and get a menu containing all Unicode characters with search similar to dmenu and most DE's program launchers. For example, to enter "∃" (THERE EXISTS), I type 8 exists…
Nova
  • 2,806
  • 2
  • 18
  • 34
6
votes
1 answer

In the usage string of my custom shell script, shall I also display --help and --version?

I'm currently developing a shell script, called up, which shows a usage string on the commandline when called with --help. The output looks like this: $ up --help usage: up [-n levels][--help][--versions][basename]... This looks okay but I'm…
helpermethod
  • 1,952
  • 2
  • 19
  • 25
6
votes
1 answer

Debian 9.9: Can I set up a multi-lingual, multi-user system with locale?

In Debian I have set up multiple users. The OS was installed in English. Next I ran sudo dpkg-reconfigure locale and selected multiple other languages (such as German, Spanish, and French) and installed them. I then created the new users all as…
lchras
  • 73
  • 4
6
votes
7 answers

Linux distribution that offers a good KDE experience

I have been a Gnome user for years (8 years), and I'm looking for recommendations and comparisons of Linux distributions that offers good KDE integration/experience. Some details to mention: the environments speed, selection of default apps whether…
wassimans
  • 1,501
  • 2
  • 13
  • 15
1
2 3 4 5 6