[clug] Command of the Hour

Michael Cohen scudette at gmail.com
Tue Sep 16 01:12:18 GMT 2008


And of course the absolute best program for remote admin - screen,
everyone must already be using it...
If you put this in /etc/screenrc or ~/.screenrc it even has tabs:

# Screen configuration

# Statusbar
hardstatus off
hardstatus alwayslastline
hardstatus string "%{.bW}%-w%{.rW}%n %t%{-}%+w %=%{..G} %H %{..Y} %d/%m %C%a"

# Scrolling in xterms
termcapinfo xterm|xterms|xs|rxvt ti@:te@

# Miscellaneous
startup_message off

Michael.

On Tue, Sep 16, 2008 at 11:06 AM, Jeremy Kerr <jk at ozlabs.org> wrote:
>
>> And sudo tee
>> Because `sudo echo foo > file` won't work when you don't have
>> permission to change file, the shell does the redirection.
>> `echo foo | sudo tee file` will work for you.
>
> I use dd for this:
>
> echo 1 | sudo dd of=/proc/sys/net/ipv4/ip_forward
>
> - which gives you the same semantics as bash redirection (ie, the output
> isn't copied to stdout)
>
> Cheers,
>
>
> Jeremy
>
>
> --
> linux mailing list
> linux at lists.samba.org
> https://lists.samba.org/mailman/listinfo/linux
>


More information about the linux mailing list