more: e.g. http://ss64.com/bash/syntax-keyboard.html
...
Bash Keyboard Shortcuts
Moving the cursor:
Ctrl + a Go to the beginning of the line (Home)
Ctrl + e Go to the End of the line (End)
Ctrl + p Previous command (Up arrow)
Ctrl + n Next command (Down arrow)
Alt + b Back (left) one word
Alt + f Forward (right) one word
Ctrl + f Forward one character
Ctrl + b Backward one character
Ctrl + xx Toggle between the start of line and current cursor position
.....
On Wed, Nov 20, 2013 at 6:48 PM, Ruediger Meier
On Wednesday 20 November 2013, Istvan Gabor wrote:
Hello:
It seems systemd is unstoppable. It gets into every linux distro sooner or later.
Apart from that we have to learn it, find its syntax awkward, very awkward.
What I mean:
The syntax, if I know correctly is:
systemctl action(enable/disbale/start/stop etc.) service-name.service
I am using bash shell as, I guess, many of you too.
In bash you can press upward cursor to get to the previous command you entered.
Just type "s" and then ALT+PageUp
This should give you the last s(ystemd) command and your cursor is still at the beginning of the line.
You can edit that command by going back with the cursor. By pressing enter you apply the new (edited) command.
ALT+leftArrow jumps a whole word back.
Now, with the current systemd syntax this is very tedious.
If I want to apply different operations I have to go back to the middle of the line to edit action. Same with service-name service. If I want to edit service name I have to go back a lot to change it.
The logical sysntax, at least in my opinion, would be:
systemctl service.service-name action
Then it would be simpler to edit previous command lines.
Practically this worked like this with initv boot scripts:
/etc/init.d/service-name start/stop etc.
Wasn't it easier an more logical and easier to use?
What do you think?
Istvan
ps: Please do not ask what is my point. The answer: this syntax is a good current example of "ain't fix what's not broken". I am talking only about the command syntax, not systemd. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org