newbie

Home newbie

Newbie: how to edit a file from the command line

Could there be any more basic question? We all know there are no stupid questions, but I sure felt dumb having to look up this one. I found the built in editor nano. Likely more searching will yield a better

How to Check the Ubuntu Version.

How do you know which version of Ubuntu you are running? This will return something like this: Related posts: Setup WordPress or WPMU to make an atomic version switch — AND allow you to revert I have a new WordPress

How to prevent server (daemons) from starting during apt-get install

Some times you may not want a server or daemon to start as part of the postinstall scrip when installing with apt-get or dpkg. To prevent servers from starting, do the following: # Prevent launch of servers during apt-get install

Configuring Log Rotation of Apache2 and Other Logs

I went to check out my apache2 logs and I noticed that they were being automatically rotated (access.log, access.log.1, etc.) and compressed with gzip (access.log.2.gz, etc.). This seems to be the default Ubuntu configuration. I wanted to make find out

How to move or copy a directory

I was trying to copy a directory, and I kept getting a cryptic error: cp: omitting directory `/var/log' The copy (cp) command only works for files. To copy a directory, you need to use the -r recursive flag: In this

How do I know which kernel I am using?

How do you know which linux kernel you are using? uname -kFind out other system info withuname -a

How to change your password from the command line

To change your own password from the command line: To change the password for another user, you must use sudo: Related posts: Newbie: how to edit a file from the command line Could there be any more basic question? We

How to easily view the end of a log file

Ubuntu/Linux log files can be quite long with many entries, but usually you only care about the end. So, how can you quickly view the last few entries in a log file? Use the tail command: To watch the latest

How to view the current time from the command line

To see the current time from the Ubuntu or Linux command line: date which will give you: Fri May 30 15:53:21 EDT 2008 To see how to include and format dates and times in your shell scripts, see this post:

Newbie: how to edit a file from the command line

Could there be any more basic question? We all know there are no stupid questions, but I sure felt dumb having to look up this one. I found the built in editor nano. Likely more searching will yield a better