You are not logged in.
# journalctl < TAB >
Display all 179 possibilities? (y or n)
Insted of:
# journalctl < TAB >
_AUDIT_LOGINUID= __MONOTONIC_TIMESTAMP=
_AUDIT_SESSION= _PID=
_BOOT_ID=
Any advice appreciated,
Thanks!
****************************************** THE QUICK ANSWER *************************
Bash's native support for <TAB> completion doesn't work with journalctl.
In other words: bash-completion had to be turned on.
see: https://wiki.archlinux.org/index.php/Ba … completion
****************************************** THE QUICK ANSWER *************************
Last edited by vordoo (2013-09-09 19:52:37)
Offline
mine works
+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome
Offline
Not a Sysadmin Issue, moving to NC...
Offline
Sooo... it is probably trying to pick up all the files in your current directory on top of the normal completion. Do journalctl _<TAB> or journalctl -<TAB> or journalctl --<TAB> and see what happens.
It should be noted that the zsh completion is not very extensive in systemd 204 or 206. But the git sources provide pretty excellent completion. From my usage so far, it seems like it is pretty on-par with bash now.
Offline
uhhh yeah I dont see what the problem is...?
if you want all the possibilitys of 'journalctl_' then type that as Woofy says
end ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'the machine is not the end to the means., we are. In history, in board rooms and politic the greatest decision and effort
evolves from passion, lust for life, and a common sense of humanity. Never forget what you are and why'. -me
Offline
Sooo... it is probably trying to pick up all the files in your current directory on top of the normal completion. Do journalctl _<TAB> or journalctl -<TAB> or journalctl --<TAB> and see what happens.
It should be noted that the zsh completion is not very extensive in systemd 204 or 206. But the git sources provide pretty excellent completion. From my usage so far, it seems like it is pretty on-par with bash now.
Yes, it is picking up all the files in the current directory, and it doesn't stop doing it with the: _, -, -- combinations (with & without space).
Using bash.
Any other suggestions will be highly appreciated.
Thanks!
Offline
Does tab completion work for other commands?
If you source /usr/share/bash-completion/completions/journalctl explicitly does it work then?
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
I changed into bash and checked this out. It seems to work fine for me…
$ journalctl _
_AUDIT_LOGINUID= __CURSOR= _KERNEL_SUBSYSTEM= _SELINUX_CONTEXT= _SYSTEMD_UNIT= _UID=
_AUDIT_SESSION= _EXE= _MACHINE_ID= _SOURCE_REALTIME_TIMESTAMP= _TRANSPORT=
_BOOT_ID= _GID= __MONOTONIC_TIMESTAMP= _SYSTEMD_CGROUP= _UDEV_DEVLINK=
_CMDLINE= _HOSTNAME= _PID= _SYSTEMD_OWNER_UID= _UDEV_DEVNODE=
_COMM= _KERNEL_DEVICE= __REALTIME_TIMESTAMP= _SYSTEMD_SESSION= _UDEV_SYSNAME=and…
$ journalctl -
-a --cursor -F --header --list-catalog --new-id128 -p --since --until --verify-key
--all -D --field --help --local --no-pager --priority --system --update-catalog --version
-b --directory --follow --interval -m --no-tail -q --this-boot --user
--boot --disk-usage --full -l --merge -o --quiet -u --user-unit
-c -f -h --lines -n --output --setup-keys --unit --verifyand...
$ journalctl
_AUDIT_LOGINUID= _COMM= _KERNEL_DEVICE= PRIORITY= _SYSTEMD_CGROUP= _UDEV_SYSNAME=
_AUDIT_SESSION= COREDUMP_EXE= _KERNEL_SUBSYSTEM= __REALTIME_TIMESTAMP= _SYSTEMD_OWNER_UID= _UID=
_BOOT_ID= __CURSOR= _MACHINE_ID= _SELINUX_CONTEXT= _SYSTEMD_SESSION=
_CMDLINE= ERRNO= MESSAGE= _SOURCE_REALTIME_TIMESTAMP= _SYSTEMD_UNIT=
CODE_FILE= _EXE= MESSAGE_ID= SYSLOG_FACILITY= _TRANSPORT=
CODE_FUNC= _GID= __MONOTONIC_TIMESTAMP= SYSLOG_IDENTIFIER= _UDEV_DEVLINK=
CODE_LINE= _HOSTNAME= _PID=Offline
OK vordoo I was able to confirm your anxiety is just....
it depends on whether or not you press Tab key on its left or right side
Last edited by rufus (2013-09-08 23:47:09)
end ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'the machine is not the end to the means., we are. In history, in board rooms and politic the greatest decision and effort
evolves from passion, lust for life, and a common sense of humanity. Never forget what you are and why'. -me
Offline
OK vordoo I was able to confirm your anxiety is just....
it depends on whether or not you press Tab key on its left or right side
Left or right side? I don't really understand this. As far as I know there is one tab key to the left of my left pinky finger… it pushes evenly from all points of the key. Can you explain this a bit more?
Offline
I think its a windblows feature on windows keyboards....I have it.
end ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'the machine is not the end to the means., we are. In history, in board rooms and politic the greatest decision and effort
evolves from passion, lust for life, and a common sense of humanity. Never forget what you are and why'. -me
Offline
Well my laptop came with Windows and the keyboard is Windows - at least, it has a key with a Windows logo on it - but my <tab> key operates in the usual way i.e. as WonderWoofy describes.
Moreover, I'm not convinced that it is possible for the keyboard to detect whether you press a key on the left or the right. (Unless it is really two keys with just one key cap, I suppose - something like the spacebar could be designed this way if you wanted to be perverse, I guess.)
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Thats what I thought but Im tellin ya there must be differant signals sent cuz its very persistant and uniform
on two differant machines....for whatever reason it is making a reliably persistant reaction depending on which
side/way I press tab...maybe Im nuts or at least going sane but thats what it is.....
Edit; these are both free floating keyboards
Last edited by rufus (2013-09-09 00:41:23)
end ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'the machine is not the end to the means., we are. In history, in board rooms and politic the greatest decision and effort
evolves from passion, lust for life, and a common sense of humanity. Never forget what you are and why'. -me
Offline
Does tab completion work for other commands?
If you source /usr/share/bash-completion/completions/journalctl explicitly does it work then?
Thanks, source'ing as you suggested makes it works OK.
So what I'm I missing?
<TAB> completion works for other commands without any source'ing (i.e.: out of the box).
I'm I expected to manually add the "journalctl source'ing" to .bashrc (or what?)?
Thanks!
Offline
Does this help: https://wiki.archlinux.org/index.php/Ba … completion ?
Offline
@rufus: It feels like you're trolling. On the off chance you're not, use xev to get the "signal" and share with us.
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
Nobodys trolling at least on this end....I was merely reporting a fact I can reproduce the OP's problem consistently with the way
I press the key....Sometimes I wish people would direct their energy toward the OP as I was doing. This became sidetracked in a hurry
over something silly but true. I was answering questions posed to me. And now there's a question of me trolling...so Im off this string, thank you.
end ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'the machine is not the end to the means., we are. In history, in board rooms and politic the greatest decision and effort
evolves from passion, lust for life, and a common sense of humanity. Never forget what you are and why'. -me
Offline
I don't think this thread was sidetracked… the OP seemed to have found the issue and the solution. After sourcing the /usr/share/bash-completion/completions/journalctl file, things worked as expected. So I would venture to say that he/she just simply forgot (or didn't know to) install the bash-completion package.
I guess if the entire bash-completion package is not desired, one could simply put the following in their bashrc:
[ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completionI guess now, it would just be nice if the OP could confirm or deny this, and mark the thread as [Solved] if applicable.
Offline
It should be noted that the zsh completion is not very extensive in systemd 204 or 206. But the git sources provide pretty excellent completion. From my usage so far, it seems like it is pretty on-par with bash now.
I use zsh. Could you please elaborate on how you do that with the git sources (zsh or systemd) ? Thanks ![]()
I believe in a world I can and do understand. A rational universe, explained through rational means.
Offline
WonderWoofy wrote:It should be noted that the zsh completion is not very extensive in systemd 204 or 206. But the git sources provide pretty excellent completion. From my usage so far, it seems like it is pretty on-par with bash now.
I use zsh. Could you please elaborate on how you do that with the git sources (zsh or systemd) ? Thanks
This is pretty off topic. So I'll answer, but don't expect this discussion to continue. I run systemd-git from the AUR, which is maintained by falconindy. But you should not run that unless you are willing to deal with potential breakage and have at least a mild understanding of how to debug it.
The other alternative would be to grab the git sources and then have the files sourced. But unless you are running the [testing] packages, there are likely changes to systemd that are not going to apply to what you have in v204.
So my advice would be either use bash, or wait.
Offline
Does this help: https://wiki.archlinux.org/index.php/Ba … completion ?
Yes & Thank you!
I didn't know Bash's native support for <TAB> completion, didn't work with journalctl. In other words: bash-completion had to be turned on.
It maybe good to add the link:
https://wiki.archlinux.org/index.php/Ba … completion
To:
https://wiki.archlinux.org/index.php/Systemd
As <TAB> completion in journalctl does work, out of the box, in some distros and is kind of assumed to work in http://0pointer.de/blog/projects/journalctl.html, which is linked from https://wiki.archlinux.org/index.php/Sy … ing_output among others.
Thank you all!
Offline
I don't think that bash's completion has anything to do with systemd in a way that would warrant a mention on the systemd wiki page. The page for systemd is meant for systemd. If you are having trouble with a bash feature, it makes sense that one would look into the bash wiki page instead.
OTOH, it might be justified as a small note in the Post Installation section of the beginners guide…
Offline
I don't think that bash's completion has anything to do with systemd in a way that would warrant a mention on the systemd wiki page.
The page for systemd is meant for systemd. If you are having trouble with a bash feature, it makes sense that one would look into the bash wiki page instead.
Yes, if you know/think/imagine it is a bash feature but...
In my experience systemd & journalctl/filters doc's (arch & others) just assume <TAB> complition works without distinguishably noteing the option that you might need to turn on bash-completion. As your system seems to <TAB> complet OK, in all other commands, you may over look a bash feature you did or didn't setup a long time ago. Especially if it works OK "out of the box" on other distros you have setup.
OTOH, it might be justified as a small note in the Post Installation section of the beginners guide…
It wouldn't help. As you would have read the beginners guide, as well as the Bash post, a long time ago. Pre-systemd it was, I have had all my "bash <TAB> complition" needs satisfied with bash's "native <TAB> support". I never turned on bash-completion and now, years after, didn't even remember/think/imagine journalctl <TAB> won't work with "Bash native <TAB> support".
As it is only a short link, please reconsider:-)
Thanks again for all your help!
Offline
I think its a windblows feature on windows keyboards....
@rufus, you have been warned before to follow our Forum Etiquette regarding Respecting Other Operating Systems. You are pushing your luck.
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
In my experience systemd & journalctl/filters doc's (arch & others) just assume <TAB> complition works without distinguishably noteing the option that you might need to turn on bash-completion.
I just think that bash-completion, and completion in general in most shells, is a feature. And like most features, they need to be explicitly turned on. I use zsh, but I can have no reasonable expectation that extended_glob should be turned on for me automatically even if it is one of the most mentioned zsh features/advancements.
It wouldn't help. As you would have read the beginners guide, as well as the Bash post, a long time ago. Pre-systemd it was, I have had all my "bash <TAB> complition" needs satisfied with bash's "native <TAB> support". I never turned on bash-completion and now, years after, didn't even remember/think/imagine journalctl <TAB> won't work with "Bash native <TAB> support".
I think that your tab completion needs have just never required the more advanced completion. Pre-systemd or post-systemd, the additional bash-completion package has always been provided as a separate package because the files are not shipped with bash itself. Packages around here are shipped as vanilla as possible from the official repos, and we actually get our bash-completion package from the debian hosted "bash-completion" project.
So what you are calling "Bash native <TAB> support" is really not native at all. Sure, the functionality of the completion engine is provided by bash, but the actual parsed files/rules that provide the functionality in question is entirely separate.
I think that if there were actually a mention of the shipped completion with systemd on the wiki page, then it would make sense to have a note indicating that the user should either have the bash-completion package or manually set up the completion directories to be sourced. But as it is now, there is no mention there.
It is a wiki though, so feel free to edit it as you see fit. If others feel that it is not in the proper place, they will remove it. But if you do add something, I encourage you to do it completely. That is, make mention of the advanced completion that systemd provides in its own little section. Don't just wedge a random one sentence note about bash-completion randomly in the page.
Anyway, I'm glad you got this figured out.
Offline