Working in the terminal is sometimes like scratching around in the dark as a blind man. You think you have achieved something but you can’t see whether or not you actually did. So it is pretty useful sometimes to be able to quickly switch users and check if your changes actually works.
Of course, this is pretty simple if you know the command to do this (which I didn’t and had to look up – thus this quickfire blog post!)
To quickly switch users, enter:
su username
Where username is the user account you wish to switch to. You will be prompted for that account’s password, and if entered in correctly, you’ll be switched over to that user account.
Simple and nifty.
To delete a system user account in Ubuntu is really even more simple than adding it in the first place. Simply run the following command: sudo userdel -r Of course, in the usual fashion of not giving you any feedback unless asked for it, the specified user account will be removed off the system. Simple an ...
How to Remote Desktop into a Windows Server from Ubuntu. There are a number of ways to do this actually, but the one below is pretty simple. And it is all thanks to the ultra useful rdesktop command. To connect to a Windows box, simply open a terminal and enter [bash]rdesktop myserver.com[/bash] (Of course ...
MySQL gets installed with a default root account under the username "root". Sometimes the system will allow you to install a root account without a password (VERY not safe), but for the most part you have to set a password on install. If of course you are anything like me, you instantly forget this password and ...
To delete a user account from a MySQL server instance, we need to make use of a DROP USER call to the mysql.user table. First, fire up MySQL in your terminal and login as an administrator account with: mysql -u root -p You will be prompted for your root password before being granted access to the MySQL mo ...
To see how much disk space you have left on your Ubuntu linux desktop or server via the terminal is made easy thanks to the standard df command that comes bundled in most Linux distros. The most default way to use this is: df -hT where the h switch returns the size in user readable units like GBs or MBs, w ...
Craig Lotter is an established web developer and application programmer, with strong creative urges (which keep bursting out at the most inopportune moments) and a seemingly insatiable need to love all things animated. Living in the beautiful coastal town of Gordon's Bay in South Africa, he games, develops, takes in animated fare, trains under whichever martial arts dojo is closest at the time, and for the most part, simply enjoys life with his amazing wife and daughter.
Oh, and he draws ever now and then too.
This is a collection of things that he has managed to find the time to scribble down since 2007.
Looking for Something?
Jump to Category: