Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to watch the changes of the output

gsettings list-recursively|grep text-scal

which is

org.gnome.desktop.interface text-scaling-factor 1.0
com.canonical.Unity.Interface text-scale-factor 1.0

but if I try to watch it with

watch gsettings list-recursively|grep text-scal

I get no output, because the pipe seems to be the problem.

How can I still watch the changes?

share|improve this question
up vote 9 down vote accepted

You need to enclose the piped command in quotes as follows:

watch -n 2 'gsettings list-recursively|grep text-scal'

This will execute the command gsettings list-recursively|grep text-scal and watch it every two seconds. Note that the time interval is in seconds.

Refer to watch's manual page for more.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.