Linked Questions

8 votes
4 answers
44k views

how to logout from terminal in 13.10? [duplicate]

I have seen some previous post about logout from terminal but those were for old versions. I didnt find the way for logout in Ubuntu 13.10 from terminal. How can I logout from terminal in Ubuntu 13....
Raja G's user avatar
  • 102k
1 vote
1 answer
19k views

How to log out from a session using the command line? [duplicate]

In order to log out from a session in xfce4, I usually click onto the icon in the upper left corner, click onto a further icon captured as log out, thereupon a window opens, where I can choose between:...
sharkant's user avatar
  • 1,311
1 vote
0 answers
81 views

Logout of User via Command Line? [duplicate]

How can I go back to the login screen of Ubuntu via command line? I often use reboot -n or shutdown -t now while I have terminal open but sometimes I just want to logout without rebooting.
Philip Kirkbride's user avatar
252 votes
5 answers
562k views

How to create a permanent "alias"? [duplicate]

If you create an alias for example: alias cls="clear" It exists untill you kill terminall session. When you start a new terminal window the alias doesn't exist any more. How to create "permanent" ...
Zango's user avatar
  • 5,011
201 votes
3 answers
55k views

Why is a virtual terminal "virtual", and what/why/where is the "real" terminal?

I hope the question is self-explanatory. My understanding is that gnome-terminal and konsole are virtual terminals, and they are basically serving the same purpose, i.e. a command line environment ...
Peter.O's user avatar
  • 24.6k
38 votes
5 answers
134k views

How to reset monitor settings to default through terminal?

I have a tricky problem regarding multiple monitors on KDE (Kubuntu). I have a laptop which, at home, is connected to two monitors - VGA and HDMI. That works only when the built-in laptop display is ...
Martin Melka's user avatar
12 votes
6 answers
35k views

How to log out with a command in a gnome-less environment?

I installed various window managers (Awesome, dwm, etc.) from which I am not able to log out back to the login screen (gnome-session) in order to switch to another window manager. I need to reboot to ...
octosquidopus's user avatar
12 votes
2 answers
4k views

Reboot without sudoer privileges?

I've been trying to get my ubuntu restart without having to edit the sudoers. This has been possible before (in lucid I think) using a dbus command: dbus-send –system –print-reply –dest=org....
Lincoln's user avatar
  • 3,513
4 votes
3 answers
3k views

How can I change user from command line

I'm in Lubuntu with Openbox as DE. When I press the power button, a window pops up and displays multiple options: logout, hibernate, sleep, change user etc. However, sometimes nothing happens when I ...
Federico's user avatar
  • 208
1 vote
2 answers
9k views

Ubuntu 13.10, logout button on top taskbar missing

Upgraded ubuntu 13.04 to 13.10, the "settings" button with shutdown/settings/login/logout is missing from the taskbar. It was the button that used to be next to the time/calender button, left right ...
nine11's user avatar
  • 11
1 vote
2 answers
2k views

How to run logout with cron?

I'm creating something to allow me to set limits for time spent per user session: I've created a cron job: */120 * * * 1,2,3,4,5 /path/to/command */180 * * * 0,6 /path/to/command and I want to run ...
Kieran's user avatar
  • 41
6 votes
3 answers
2k views

How can I use code or a script to lock my screen programmatically in Lubuntu?

I want to write code or a script to lock the PC when my C++ program receives a specific command from Ethernet. Is there any way to show the Login screen from the command line? I want to lock the ...
oMatrix's user avatar
  • 65
1 vote
1 answer
1k views

Simulate power button using command?

When I hit the power button on my laptop (Ubuntu 14.04.1 without any modifications), I receive a pop window saying Goodbye, what would you like to do? Lock Suspend Restart Shutdown How can I get ...
jII's user avatar
  • 1,102
0 votes
1 answer
1k views

Ubuntu UI unresponsive but can ssh in, how do I log out the remote over ssh?

I want to log out the user session of a remote Ubuntu 12.04 x64 (laptop) by ssh'ing and running a command. I know I can reboot with a simple sudo reboot but don't want to if I can help it, I'd ...
bgibson's user avatar
  • 4,787
2 votes
2 answers
759 views

How can I undo `gnome-shell --replace`?

I typed this in tty1 (ctrl+alt+F1): gnome-shell --display :0 --replace and then the theme of desktop changed. I want to go back to the previous one but cant because this theme is broken and doesn’t ...
Huzaifa Tariq's user avatar

15 30 50 per page