- ESC + .
Escape key and the period/full stop at the same time will insert the last argument from the previous command. For example if your previous command is:
Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts
Monday, 17 October 2011
Top 10 Command Line Shortcuts
Wednesday, 12 October 2011
Top Command Line Tips: Apache Access Log
I said I should do some top command line tips. So I thought I'd start with some useful Apache access log monitoring and analysis commands.
These can come in useful if odd things are happening on your websever and maybe you think there are dodgy spiders or your need to only see requests from your IP, that kind of thing.
Assumptions
I'm assuming the path to your access log is /var/log/apache/access.log. So adjust if it's different.
Also assuming your access file's LogFormat is 'combined' and that you actually have permission to view the logs.
Commands Overview
Commands and options we'll be using are:
These can come in useful if odd things are happening on your websever and maybe you think there are dodgy spiders or your need to only see requests from your IP, that kind of thing.
Assumptions
I'm assuming the path to your access log is /var/log/apache/access.log. So adjust if it's different.
Also assuming your access file's LogFormat is 'combined' and that you actually have permission to view the logs.
Commands Overview
Commands and options we'll be using are:
Thursday, 6 October 2011
Top 5 Command Line Tip Posts
![]() |
| Linux CLI cheat sheet from Pixel Beat |
Actually my favourite of these is 9 ways to recover your screen. that has come in useful countless times.
Friday, 3 June 2011
Reduce The Risk of Human Error on Live Servers
This is another quick and easy tip, this time help to reduce human error when working between live, development and staging environments.
In short the tip is to visually distinguish between live/staging/dev environments; the idea being that you don't accidentally run something on the live environment instead of staging or testing. Assuming you're connecting via SSH, you should be able to configure your console program to use a background image and you should be able to customise your command prompt.
In short the tip is to visually distinguish between live/staging/dev environments; the idea being that you don't accidentally run something on the live environment instead of staging or testing. Assuming you're connecting via SSH, you should be able to configure your console program to use a background image and you should be able to customise your command prompt.
Labels:
command-line,
it,
linux,
terminal,
tip
Wednesday, 1 June 2011
Enabling Alt+f and Alt+b shortcuts in Gnome Terminal
I though each time I find a solution to a problem I have I should blog it to make sure the knowledge is out there for everyone. This is a super simple one to start with.
I've been switching from KDE to Gnome in Ubuntu, but been finding it hard to let go of Konsole.
Then I realised the the Gnome Terminal allows background images the way Konsole used to. Anyway, that's another post, standard terminal shortcuts weren't working, like Alt+f to skip forward a word and Alt+b to go back a word, as they were conflicting with the window menus, as in the image above.
There's a super simple fix.
I've been switching from KDE to Gnome in Ubuntu, but been finding it hard to let go of Konsole.
Then I realised the the Gnome Terminal allows background images the way Konsole used to. Anyway, that's another post, standard terminal shortcuts weren't working, like Alt+f to skip forward a word and Alt+b to go back a word, as they were conflicting with the window menus, as in the image above.
There's a super simple fix.
Wednesday, 25 May 2011
Fixing Ubuntu 11.04 Partial Upgrade
I use Ubuntu at work and at home and normally the upgrade process is very smooth.
However, the upgrade from 10.10 to 11.04 has been a pain to say the least.
In fact I'm still grappling with it. (Haven't even started it at work yet.)
So I thought I'd share some tips to in case they might help anyone else.
However, the upgrade from 10.10 to 11.04 has been a pain to say the least.
In fact I'm still grappling with it. (Haven't even started it at work yet.)
So I thought I'd share some tips to in case they might help anyone else.
Subscribe to:
Posts (Atom)


