Most Popular

1500 questions
200
votes
3 answers

How do I list the members of a group?

How can I see all the members of a group in Linux?
fratrik
  • 2,785
200
votes
9 answers

How can I execute a .jar file from the terminal

I know that to execute a file, I use the . command, then the file name with a space between them. But I'm trying to execute a Java .jar file using the . and it does not work. I went into the properties and marked it as executable and made it run…
jaorizabal
  • 3,778
199
votes
3 answers

How do I run a single command at startup using systemd?

I'd like to startup an Apache Spark cluster after boot using the following command: sudo ./path/to/spark/sbin/start-all.sh Then run this command when the system prepares to reboot/shutdown: sudo ./path/to/spark/sbin/stop-all.sh How can I get…
macourtney7
  • 2,897
199
votes
7 answers

Why am I getting authentication errors for packages from an Ubuntu repository?

I'm experimenting with VPNs, so I wanted to install pptpd. john@desktop:~$ sudo apt-get install pptpd [sudo] password for john: The following extra packages will be installed: bcrelay The following NEW packages will be installed: bcrelay…
John
  • 3,967
199
votes
5 answers

Why doesn't this show the hidden files/folders?

I was looking through my system with du -sch ./* to find the big useless files I may have stockpiled with no reason, when I found this: $ du -sch ./* du: cannot read directory ‘./drbunsen/.gvfs’: Permission denied du: cannot read directory…
Dr_Bunsen
  • 4,783
199
votes
6 answers

Is aptitude still considered superior to apt-get?

When I first started with Ubuntu using aptitude was the 'in-thing', with some stated improvements over apt-get. Am I correct in saying that apt-get has now 'caught up' with aptitude, and it makes little difference which is used (although it is…
8128
  • 28,868
199
votes
21 answers

How do I include lines in resolv.conf that won't get lost on reboot?

I have finally migrated to 12.04 from 7.10. I have one last part to complete but I am stumped. I am using Puppet on each server, and in the past I have included a nameserver address and a search domain name for the puppetmaster in resolv.conf.…
Sam
  • 1,991
  • 2
  • 12
  • 3
199
votes
7 answers

Why don't the Ubuntu repositories have the latest versions of software?

Why are packages in the official Ubuntu repositories older than the latest (upstream) versions from Debian Sid, PPAs, the authors, etc.?
198
votes
8 answers

How do I set environment variables?

I'm trying to set up Apache Tomcat on my pc, and it wants me to set up an environment variable for CATALINA_HOME. Does any know how to do this?
jumpnett
  • 6,185
198
votes
9 answers

How to get date and time using command line interface?

How can I get current date/time in terminal. I mostly start up my system in text(console) mode and need the command to know the current date/time.
198
votes
8 answers

How to avoid using sudo when working in /var/www?

I want to stop having to use sudo everytime I work in /var/www. How can I do that? I simply want to put all of my sites into this directory and work with them without too much pain.
TaylorOtwell
  • 2,115
198
votes
4 answers

Pressing enter produces ^M instead of a newline

For example, if I am tail -fing a file or reading user input, will produce ^M in the terminal instead of ending the read or adding a newline to stdout. ^J works fine. I'm sshing into the ubuntu system, if that matters. This happens to me…
benekastah
  • 2,089
197
votes
8 answers

How to create script with auto-complete?

When I use program like svn and I type in Gnome Terminal: svn upd and hit Tab it's autocompleted to: svn update Is it possible to do something like that in my custom bash script?
UAdapter
  • 17,967
197
votes
3 answers

Command to append line to a text file without opening an editor

Assuming i have a line that i want to add to a file without opening an editor. How could i append this line alias list='ls -cl --group-directories-first' to this file config.fish
NES
  • 33,935
197
votes
5 answers

Disable auto-opening nautilus window after auto-mount

Every time I plug a USB stick in, nautilus opens a new window with the contents of the drive. I would like to disable this auto-opening of the nautilus window, but I would like the actual auto-mount to keep working. Is this possible?
Anton Cherkashyn
  • 4,064
  • 3
  • 21
  • 18