Do sudo gedit /etc/init.d/gdm then look at the bottom of the gedit window where you see sh, Tab Width, Ln. That's what you're looking for "Ln" which means line number.
-- You received this bug notification because you are a member of Desktop Packages, which is subscribed to gdm in Ubuntu. https://bugs.launchpad.net/bugs/1315442 Title: Extra "fi" in /etc/init.d/gdm Status in “gdm” package in Ubuntu: Confirmed Bug description: Ubuntu release 14.04 LTS gdm 3.10.0.1-0ubuntu3 I just tried to start gdm with "/etc/init.d/gdm start " and got the message: /etc/init.d/gdm: 79: /etc/init.d/gdm: Syntax error: "fi" unexpected (expecting "}") I'm aware of service(8) but cjwatson said I should report this as a bug anyway! Owen To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gdm/+bug/1315442/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp