date int64 1,220B 1,719B | question_description stringlengths 28 29.9k | accepted_answer stringlengths 12 26.4k | question_title stringlengths 14 159 |
|---|---|---|---|
1,419,660,692,000 |
I am looking through a memory dump
B79C6440 64 6F 6E 65 00 00 6C 5F 75 62 6C 65 20 73 68 6F done..l_uble sho
B79C6450 77 5F 00 00 5F 6F 6E 5F 72 75 70 00 00 61 63 6B w_.._on_rup..ack
B79C6460 69 72 71 5F 76 65 63 74 6F 72 73 10 10 05 30 10 irq_vectors...0.
B79C6470 06 50 10 07 70 10 08 90 10 09 B... |
Well, aside from using e.g. bc or your shell (simply echo "$((0xB79C6440 + 1234))), you can't.
Let's be honest here, hexedit is a fine tool with a time-honored tradition, but it's hardly the hexeditor of choice if you're really trying to move around complex files:
if you're looking at executable program code / libra... | How to jump X bytes down in hexedit? |
1,419,660,692,000 |
I'm on a little-endian linux machine and would like to see the canoncial hexdump of a cpio archive on big-endian linux machine.
Can someone please run these commands on a big-endian linux and post the output:
echo TESTING > /tmp/test
cpio -o <<< "/tmp/test" > /tmp/test.cpio
hexdump -C /tmp/test.cpio
If you are curiou... |
I found a sample big-endian cpio archive (it was already commented in the libmagic file):
# https://sembiance.com/fileFormatSamples/archive/cpio/skeleton2.cpio
The path entries start at the exact spot (26th byte) as the little-endian archive. So to answer my own question:
No. There's no reason not to check the 26th b... | CPIO Archive Hexdump on a Big-Endian Linux Machine |
1,419,660,692,000 |
I need to convert binary data to hex/octave/any suitable format and back to binary when I am splitting one big 1GB file into files containing 777 events each which are not of the same size such that each event is separated by a string fafafafa in hexdump format (but note that this separator may not exist in telnet-exa... |
Binary test data 1GB, discussed here, is created by
dd if=/dev/urandom of=sample.bin bs=64M count=16
Split by byte position
Please, see the thread about this here.
I think this is the most appropriate way to do the split if the byte offset is fixed.
You need to determine the locations of the first two event headers ... | Commands for data manipulation of binary to octave/hex formats? |
1,419,660,692,000 |
My tool is wtiting binary chars to stdout and I can view it in hex with
# ./md /dev/ttyUSB0 | xxd
0000000: 6f03 1100 0003 0084 8400 0000 0900 0a00 o...............
0000010: 0008 0004 0000 0000 2c00 0000 0000 0000 ........,.......
...
00000b0: 8000 8000 8000 8000 8000 8000 8000 8000 ................
00000c0: 8047 ff... |
Bacticks are used for command substitution, you need:
watch './md /dev/ttyUSB0 | xxd'
| How to `watch` output of `xxd` or `hexdump` command? |
1,414,527,809,000 |
Why is this?
When I do this
CD ~/Desktop
It doesn't take me to the Desktop. But this:
echo "foo
bar" | GREP bar
gives me:
bar
|
From your other questions I take it you're using OS X. The default HFS+ filesystem on OS X is case-insensitive: you can't have two files called "abc" and "ABC" in the same directory, and trying to access either name will get to the same file. The same thing can happen under Cygwin, or with case-insensitive filesystems... | Why can Shell builtins not be run with capital letters but other commands can? |
1,414,527,809,000 |
I have a large file (2-3 GB, binary, undocumented format) that I use on two different computers (normally I use it on a desktop system but when I travel I put it on my laptop). I use rsync to transfer this file back and forth.
I make small updates to this file from time to time, changing less than 100 kB. This happens... |
Rsync will not use deltas but will transmit the full file in its entirety if it - as a single process - is responsible for the source and destination files. It can transmit deltas when there is a separate client and server process running on the source and destination machines.
The reason that rsync will not send delt... | Smarter filetransfers than rsync? |
1,414,527,809,000 |
My drive is formatted to hfs+ and it is not clean.
For example, when I'm trying to mount the drive by mount -f -o rw, dmesg displays the error:
hfs: Filesystem was not cleanly unmounted, running fsck.hfsplus is recommended.
mounting read-only.
So when I'm trying to repair it via fsck.hfsplus (part of hfsprogs) it say... |
You should to try to rebuild the catalog file (B-tree) on the specified file system (which is HFS+) by specifying -r option for fsck, for example:
$ fsck.hfsplus -fryd /dev/sdd2
This option currently will only work if there is enough contiguous space on the specified file system for a new catalog file and if there is... | How to fix invalid map node linkage? |
1,414,527,809,000 |
cp --reflink=auto shows following output for MacOS:
cp: illegal option -- -
Is copy-on-write or deduplication supported for HFS? How can I COW huge files with HFS?
|
Apple's new APFS filesystem supports copy-on-write; CoW is automatically enabled in Finder copy operations where available, and when using cp -c on the command line.
Unfortunately, cp -c is equivalent to cp --reflink=always (not auto), and will fail when copy-on-write is not possible with
cp: somefile: clonefile faile... | cp --reflink=auto for MacOS X |
1,414,527,809,000 |
What is the explanation for the difference:
$ ls -l /Applications/Safari.app/Contents/Info.plist
-rw-r--r-- 1 root wheel 15730 11 jui 15:02 /Applications/Safari.app/Contents/Info.plist
$ du -sh /Applications/Safari.app/Contents/Info.plist
0B /Applications/Safari.app/Contents/Info.plist
Once the file is copied... |
I may have found something:
The ls command on OS X has this switch:
-O Include the file flags in a long (-l) output.
The result is:
$ ls -O Info.plist
-rw-r--r-- 1 root wheel compressed 15730 11 jui 15:02 Info.plist
I just checked (experimentally) that du always reports 0 for HFS+ compressed files.
Copying... | Why does du report a size of 0 for some non-empty files on a HFS+ partition? |
1,414,527,809,000 |
I needed to make a clone of my hard drive recently (bad blocks FTW). I was using Clonezilla at the time.
However, Clonezilla refused to copy the HFS+ partition, so I did it manually. The problem is that the UUIDs are out of sync.
What is the command to set a specific UUID for HFS+?
|
First I'll create a 500M image file:
$ cd /tmp
$ fallocate -l $((1024*1024*500)) ./disk
Now I'll give it a GPT:
$ gdisk ./disk
GPT fdisk (gdisk) version 0.8.10
Partition table scan:
MBR: not present
BSD: not present
APM: not present
GPT: not present
Creating new GPT entries.
o for create new GPT.
Command ... | Changing HFSPlus UUID from PartedMagic |
1,414,527,809,000 |
I'm in the process of setting up a file server, and I'm looking for a way to preserve extended attributes in files that come from OS X machines, and manipulate them while the file is on the server. Obviously (well, presumably) this will require using HFS+ on the server, which is not a problem (unless there are hidden... |
No I do not believe that either the native HFS+ driver or the Paragon software HFS+ products support extended attributes.
According to the HFS+ Wikipedia page the status of these drivers is every basic in the features that they support and have been known to corrupt HDDs in certain situations.
excerpt from CentOS thre... | On Linux, can you write to HFS+ extended attributes? |
1,414,527,809,000 |
I would like to better understand what is on this hard disk, and how I can mount it into Linux (specifically Debian GNU/Linux, Stable):
It was created on a Powerbook g4 "alu book" with the default program, and used as a backup drive. Now I'm trying to rescue it or at least just use dd to save images of the partitions ... |
If you have space, please back up the disk as a whole (e.g. dd if=/dev/sdb of=disk.img bs=1M), before running random programs like fsck on things that you don't think are valid partitions :p. I'm not saying you've damaged it, but there's a very good chance of doing so while experimenting.
The partition table shown b... | Is this a so-called "Hybrid" Mac Partition table, and how can I mount this in Linux? |
1,414,527,809,000 |
I ran the command fdisk -l to find out what my external drive is formatted to, I found out it's uses GPT partitions and the filesystem is HFS+.
When I try and create a new folder on the external drive I receive the following message:
chmod: changing permissions of 'file_name/': Read-only file system
If I run mount th... |
Note:
It seems you need to mount a hfsplus as write/read, which is a bit problematic, because of it's journal function.
However, you can mount it as write/read as seen here and here.
The problem is that /dev/sde2 is mounted read only, according to the ro flag in the parentheses in the last line:
/dev/sde2 on /media/... | Changing file permissions on an HFS+ filesystem |
1,414,527,809,000 |
Today I have bought a new Toshiba 1TB Canvio Ready USB 3.0 Portable External Hard Drive (Black). The specifications page of the portable hard drive says, it has been formated to NTFS file system and can be re-formatted to HFS+ file system for full Mac compatibility.
File system
NTFS (MS Windows)
* The drive can... |
Sure. The only reason that only NTFS and HFS+ were mentioned was because that's what the vast majority of people purchasing their product are going to use.
This isn't OS-specific, but I would strongly recommend that you always make sure to properly unmount the drive before you disconnect the USB cable. USB drives aren... | Is it okay to format my Toshiba Canvio Ready Portable Hard Drive to "ext4"? |
1,414,527,809,000 |
Well... It's about on an OS X system (hfs+), but that's unix after all to. :p
system has become unbootable, due to a filesystem error...
fsck.hfsplus fails because ....
...
** Checking Catalog file.
Illegal name
illegal name is 0xB1 03 0D 03 BB 03 BF 03 B3 03 BF 03 2F 00 C3 03 B5 03 BB 03 2E... |
You've found a bug (or, possibly, "we'll get to it somday...") in Apple's HFS+ fsck. It sounds like it needs to try fixing your file to a different name, after finding out its first attempt isn't available. This leaves you with a couple of options:
First, take a backup of any data you can currently read from the FS. I... | Files that do not exist, prevent me from deleting them, corrupted filesystem |
1,414,527,809,000 |
I'm having trouble trying to mount a filesystem. Basically, if I mount /dev/sdc1, it works perfectly. But if I mount /dev/sdc with a byte offset, it fails. The filesystem is HFS+ (formatted using an actual iMac).
root# fdisk -l /dev/sdc
Disk /dev/sdc: 320.1 GB, 320072932864 bytes
255 heads, 63 sectors/track, 38913 cy... |
This was broken in OpenSUSE 12.1, but when I updated my PC to OpenSUSE 13.1, the problem simply stopped existing. Weird, but true! Must have been a kernel bug or something...
| Can't mount filesystem by offset |
1,414,527,809,000 |
Linux can format an (external) disk as HFS+, e.g.:
apt-get install gparted hfsprogs, then
gparted /dev/sdd, rightclick on the partition to format, choose HFS+, click Apply, quit; mount -t hfsplus /dev/sdd2 /mnt/foo.
But then you can't make both /mnt/foo/xyzzy and /mnt/foo/XYZZY, because gparted used macOS's default op... |
mkfs.hfs -s /dev/sdd2
from man mkfs.hfs:
-s Creates a case-sensitive HFS Plus filesystem. By default a
case-insensitive filesystem is created. Case-sensitive HFS
Plus file systems require a Mac OS X version of 10.3 (Darwin
7.0) or later.
| Format disk as HFS+, but case sensitive? |
1,414,527,809,000 |
First of all, I'm completely ignorant regarding shell commands. So, please, be patient. Also, I'm using OS X, but I'm happy with an answer in the generality of Unix if such thing is possible.
I'm trying to execute the command stat -f [some parameters here] [volume name].
According to references elsewhere, the most s... |
The command line tools that come pre-installed on OS X come from FreeBSD, but many guides online will probably assume a Linux environment and GNU tools. They're not always the same.
Compare the two man pages for FreeBSD stat and GNU stat. In FreeBSD, -f sets the output format and takes a corresponding argument. In GNU... | Some questions about the stat command for file systems |
1,414,527,809,000 |
I backed up my MacBook using a Blu-ray burner on my CentOS server. When I try to mount the Blu-ray disk,
$ mount -t hfsplus /dev/sr0 /mnt/bluray
I get the error,
mount: no medium found on /dev/sr0
I believe the write was successful. I use a disk cataloger immediately after I burn every disk, and I have a catalog of ... |
I see three problems here of which two were explainable immediately and one
needed more investigation by program dvd+rw-mediainfo.
First, you create an ISO 9660 filesystem and try to mount it as HFS+.
This is supposed to fail with "mount: wrong fs type, ...". Well, your
error message rather points to a medium problem ... | What about hfs+ file system, `k3b` iso's and `growisofs` makes my blu-ray disk a coaster? |
1,414,527,809,000 |
I have a 1TB External drive that was formatted HFS+ for use with a Macintosh Apple Computer. The drive is completely full.
I'm using Linux to try to recover all the files, or to repair the disk and then mount it and retrieve everything.
I tried gddrescue, but that was taking too long to finish. At 0.06% of the recover... |
I was able to image the disk with testdisk which produced a similar result to what ddrescue normally would, if that would have been successful.
Then I used hfsprescue on the image created by testdisk. The process couldn't have been easier, following those two steps. I recovered 99.99% of my files, including the direct... | How to recover HFS+ Partition Catalog (Possible failing drive) |
1,414,527,809,000 |
I have read through all the man pages of my hfs-related packages (hfsplus-tools, hfsutils), and I cannot find a way to relabel a hfs+ volume. gparted also seems to be able on my system to do all the other operations on hfs+, but not change UUID and label (it can view them though, I suppose through libblkid). Is it rea... |
The actions available on file systems are listed on the GParted Features page. Currently (latest version 0.23.0) the Label and UUID features are not available for HFS and HFS+ file systems. This is due to limitations in the underlying file system tools.
| relabel hfs+ volumes |
1,414,527,809,000 |
I am attempting to rename an HFS+ partition for a friend to use. After formatting, the volume appears as "untitled". Gparted and Nemo cannot seem to relabel it due to their own limitations for dealing with HFS.
I can read/write normally, but currently cannot edit the GPT label, which is what I want to do. How can I do... |
Unfortunately, the answer seems to be that parted and other command line tools are not capable of writing labels to HFS/HFS+ partition schemes at the moment, possibly ever. Parted being the most feature-rich tool for editing partitions, and that in itself depending on hfsprogs, which does not seem to support HFS+ rela... | How can I relabel an HFS+ partition? |
1,414,527,809,000 |
I have a hard drive which has suddenly developed unstable sectors.
I am able to read it with dd_rescue, so I transferred it completely to another new drive of the same size.
The Windows partition is bootable after the transfer, however, the Mac partition behaves weird.
When I boot it for the first time, it boots just ... |
I interrupted the second dd session after about 100Gb in the disk. Then I booted off an external OSX drive with DiskWarrior lent from a friend.
From there I got a list of the overlapping files which were mostly cache files, so I went ahead and deleted them from the terminal. Then let DW rebuild the disk directory. Aft... | Migrating a failed hard drive — preventing fsck |
1,414,527,809,000 |
I have a friend's Mac OS X disk that comes with an HFS+ partition. I am supposed to recover the personal data from this disk (it's not yet clear if the FS is corrupted or the disk dying), but for the life of me I cannot understand what is the traditional file-tree structure on a Mac OS X disk.
Where is the user conte... |
Users' home directories can be found in in /Users/.
| where is the user content on a Mac OS X disk? |
1,414,527,809,000 |
Scenario: for simplicity - consider that exists a hard disk of 500GB to only install Linux (for example Ubuntu, Debian or Fedora) - and if exists a hard disk of 750GB or 1TB then 500GB are dedicated for Linux (as first case) and the rest of the disk for Windows.
I read many tutorials about best practices about to defi... |
100 MiB for /boot is not enough, I recommend 1 GiB. It varies in different distributions, but on my system initramfs is 36 MiB and vmlinuz 11 MiB. So with 100 MiB you probably wouldn't be able to fit more than one bootable kernel+init on your system.
I would recommend 1 GiB, 500 MiB minimum.
Don't forget that you'll a... | Define partitions to install Linux but considering Security and Administration aspects/concerns |
1,414,527,809,000 |
I think the only option is to move a zip file there but I get when trying to create a directory there on hfsplus file system at /media/masi/Elements/.
masi@masi:/media/masi/Elements$ mkdir MasiWeek
mkdir: cannot create directory ‘MasiWeek’: Read-only file system
masi@masi:/media/masi/Elements$
df -T | grep hfs outpu... |
Answer in Philippos' comment
You can't. Sorry to say that, but as soon as it's on hfs+, it's no "backup" anymore. Even without considering the problems with the linux hfs driver, backup on hfs(+) is not a good idea. I've been a mac lover for decades, but hfs(+) has always been a pain for me. TimeMachine is a great to... | How to backup Debian system to Apple hfsplus Harddisk? |
1,458,730,198,000 |
The question is about special variables. Documentation says:
!!:$
designates the last argument of the preceding command. This may
be shortened to !$.
($_, an underscore.) At shell startup, set to the absolute pathname used to invoke the shell or shell script being executed as passed in the
environment or arg... |
!$ is a word designator of history expansion; it expands to the last word of the previous command in history. In other words, the last word of the previous entry in history. This word is usually the last argument to the command, but not in case of redirection. In:
echo "hello" > /tmp/a.txt
the whole command 'echo "he... | $_ vs !$. Last argument of the preceding command and output redirection |
1,458,730,198,000 |
I'm trying to set an alias for sudo !! in Bash. I tried alias sbb='sudo !!', but it interprets that as a literal !! and prints
sudo: !!: command not found
If I use double quotes, it substitutes the double bang in the string itself, so that doesn't work.
Is there any way to make this work? Or an alternative alias?
`... |
!! is expanded by bash when you type it. It's not expanded by alias substitution.
You can use the history built-in to do the expansion:
alias sbb='sudo $(history -p !!)'
If the command is more than a simple command (e.g. it contains redirections or pipes), you need to invoke a shell under sudo:
alias sbb='sudo "$BASH... | How can I `alias sudo !!`? |
1,458,730,198,000 |
Bash uses exclamation marks for history expansions, as explained in the answers to this question (e.g. sudo !! runs the previous command-line with sudo). However, I can't find anywhere that explains what running the following command (i.e. a single exclamation mark) does:
!
It appears to print nothing and exit with 1... |
The lone ! at the start of a command negates the exit status of the command or pipeline: if the command exits 0, it will flip into 1 (failure), and if it exits non-zero it will turn it into a 0 (successful) exit.
This use is documented in the Bash manual:
If the reserved word ‘!’ precedes the pipeline, the exit statu... | What does typing a single exclamation mark do in Bash? |
1,458,730,198,000 |
Does anybody know why bash still has history substitution enabled by default? My .bashrc has included set +H for many many years but some other people are still getting bitten by this feature.
Given that pretty much everybody are using terminals with copy-paste features and bash compiled with readline library and his... |
Social/cultural inertia.
This question is in the how-humans-work problem space, so I'm going to answer from that angle, without putting forth any opinion about whether or not the feature ought to be on by default.
To start, to make sure you understand the other side, consider that the annoyance you feel about having t... | Why is bash history substitution still enabled by default? [closed] |
1,458,730,198,000 |
I can't remember the trick where I could get the last command without running it:
let's say I want to be be able to access the command !1255 when pressing the up arrow key and modify the command. So what's the trick to call the command, make it be shown up in the command line but not executed and afterwards accessible... |
!1255:p
Will do this
! is history recall
1255 is the line number
:p prints but does not execute
Then you can use up-arrow to get ther previous (unexecuted) command back and you can change it as you need.
I often combine this with hg ("History Grep") - my favorite alias.
$ alias hg # Maybe use hgr instead if you are... | How to recall a previous command (without execution) in order to change it? |
1,458,730,198,000 |
I am starting to learn some Regex, therefore I use this command repeatedly:
grep pattern /usr/share/dict/american-english
Only the part with pattern changes, so I have to write the long expression "/usr/share/dict/american-english" again and again.
Someone made the remark that it is possible to expand an argument o... |
You can use <M-.> (or <Esc>. if your Meta key is being used for something else), that is, Meta-dot (or <esc> dot), where Meta is usually the Alt key, to recall the last argument of the previous command. So, first you would type
$ grep foo /usr/share/dict/american-english
And then if you wanted to grep for something e... | How to access the second argument from the last command in the history ? |
1,458,730,198,000 |
If I type in this:
echo "Hello, World!"
I don't know the name of it, but it prompts me for the next line. You know the PS2 thing. Or if you type echo \ and press Enter.
Why?
Well I know that ! is a Special Variable that you can use to reference your history.
But as soon as I use this:
echo "Hello, World"!
I get my ... |
! is not a special _variable. (There's a variable called !, which you can access with $!, but it's unrelated.) It's a character with a special meaning, depending on where bash sees it and on what comes after.
The ! character starts history expansion. Bash performs history expansion very early when parsing a command li... | Echoing "!" inside a string does some weird things [duplicate] |
1,458,730,198,000 |
I took a closer look on this phenomenon after I stumbled over it in two other questions today. I've tried all of this with the default set -H (history expansion on).
To test a script, I often do things like echoing a multi-line string and pipe it through a script, but in some cases it gives an error:
$ echo "foo
bar" ... |
I reported this to [email protected] and got this answer:
History expansion is explicitly line-oriented, and always has been. There's
not a clean way to make it aware of the shell's current quoting state
(mostly since it's a library independent of the shell). Maybe there's a way
to use one of the existing callback fu... | Bash: History expansion inside single quotes after a double quote inside the same line |
1,458,730,198,000 |
Often I'm writing a command in a bash prompt, where I want to get previous arguments, in the CURRENT line I'm typing out, and put in other places in the command.
A simple example, would be if I want to rename a file. I would
type out the mv command
type the filename I want to move, ~/myTestFileWithLongFilename.txt
n... |
It's possible but a bit cumbersome. In bash !# refers to the entire
line already typed. You can specify a given word you want to refer to
after :, in this case it would be !#:1. You can expand it in place
using shell-expand-line built-in readline keybinding
Control-Alt-e.
| bash - get 1st argument of current command I am editing via history, or similar? [duplicate] |
1,458,730,198,000 |
Example: I type man ls, than I want to get man only.
By using !! I can get man ls but how do I get man?
|
You can select particular word from last typed command with !!: and a word designator. As a word designator you need 0. You may find ^ and $ useful too. From man bash:
Word Designators
0 (zero)
The zeroth word. For the shell, this is the command word.
^ The first argument. That is, word 1.
$ ... | How do I get command name of the last executed command? |
1,458,730,198,000 |
I have the following Bash script
case $- in (*H*) echo enabled ;; (*) echo disabled ;; esac
set -H
case $- in (*H*) echo enabled ;; (*) echo disabled ;; esac
pwd
last_command="!!"
echo $last_command
which prints
disabled
enabled
/home/user
!!
The first line of code checks to see if history expansion is enabled. The... |
For a non-interactive shell, you must specifically also enable command history:
set -o history
set -o histexpand
Then your example will work:
disabled
enabled
/home/schaller/tmp/502442
last_command="pwd"
pwd
| History expansion in scripts [duplicate] |
1,458,730,198,000 |
I want this to work (it needs extendedglob and histsubstpattern):
alias ri='^(#b)E(?)^E${(l:2::0:)$((match[1]+1))}'
But it doesn't:
$ alias sss='^(#b)E(?)^E${(l:2::0:)$((match[1]+1))}'
$ echo /Users/evar/Downloads/Video/Teenage_Mutant_Ninja_Turtles_2003_S02E01_DVDRip_30N... |
You can't, history expansion happens before alias or parameter expansion.
I personally hate history expansion and is the first thing I disable.
Here, instead of aliasing a history expansion, I'd suggest creating a widget that increments a E<n> number left of the cursor:
increment-episode() {
emulate -L zsh
setopt ... | How can I alias a history expansion in zsh? |
1,458,730,198,000 |
I am using rsync command to sync two folder and on success of rysnc I want to copy a file success and while copying append source folder name parameter like Success_FolderName.I am using $(basename !:3) to get the third parameter i.e Folder Name.
bash /Sync.sh 10_03_2016
#! /bin/bash
set -o history
set -o histexpand
... |
I don't understand why you're making this so complex. Why use the (rather finicky) !:N history expansion feature when you already have everything you need passed as an argument? For example:
#! /bin/bash
source="/Source/$1"
destination="Destination/"
folderParam="$(basename "$source")"
/usr/bin/rsync -avh -r "$source... | Sync two folders and on success copy one file from a location to the other |
1,458,730,198,000 |
My modified search history lines have an asterisk next to them.
I've searched unix.stackexchange.com and stackoverflow.com, but I yearn for a full explanation for the asterisks in my history (other than what the man page says).
Lines listed with a * have been modified.
Example:
$ history | tail
11850*
11851 ./block... |
This similar question has two related answers.
Specifically:
As explained in the Bash manual, history lines prefixed with a * have been modified. This happens when you navigate to a command (e.g. by using the Up key), edit it and then navigate away from it without hitting Enter. ... BTW, you can revert modified comma... | `history` command produces asterisk * entries |
1,458,730,198,000 |
From man bash:
!# The entire command line typed so far.
From man zshall:
!# Refer to the current command line typed in so far. The line is treated as if it were complete up to and including the word before the one with the !# reference.
The only thing I could think off is:
cd ..;!#!#!#
To go up 8 steps:)... |
I don't use it often but it's sometimes useful in conjunction with :
for extracting n-th word of the command. For example:
$ touch FILE.a
$ echo file created
$ mv FILE.a !#:1.bak
mv FILE.a FILE.a.bak
Another example, although quite pointless in practice, would be using
it together with cut to get contents of the vari... | What is the use of `!#` in csh, bash, zsh and probably other shells? |
1,458,730,198,000 |
I have a workflow that first check git diff for specific file and then add it to stage.
git diff ..
^diff^add
I want to give these command a alias but this one doesn't work
alias da="^diff^add"
command not found: ^diff^add
|
You can't do it that way. History substitution (i.e. the handling the ^ and !) is done before alias expansion.
Use fc -s instead:
$ alias da='fc -s diff=add'
$ echo git diff
git diff
$ da
echo git add
git add
| How to create alias with a caret^ command? |
1,458,730,198,000 |
It would be handy if I could use bash history modifiers in scripts such as:
!$:h to get the path of a file.
Is there a way to use them in scripts? Eg ${1:h}
|
Those history modifiers could also be applied to variables in csh where the feature comes from.
But bash chose not to copy that part. zsh did though. So you could use zsh instead of bash here:
$ file=foo/bar/
$ echo $file:h # (or ${file:h})
foo
(the example chosen to show that zsh actually improved upon csh which wou... | Can I use bash history modifiers with variables in scripts? |
1,458,730,198,000 |
In my terminal (bash 3), I sometimes use the quick substitution
^aa^bb^
^string1^string2^
Quick substitution. Repeat the last command, replacing string1 with string2. Equivalent to `!!:s/string1/string2/` (see Modifiers below).
For example
$ echo aa aa
aa aa
$ ^aa^bb^
echo bb aa
bb aa
Which is really h... |
It can be omitted if it is the last character of the event line.
First, we check what ^string1^string2^ meaning from man bash:
^string1^string2^
Quick substitution. Repeat the previous command,
replacing string1 with string2. Equivalent to
``!!:s/string1... | Is using shorthand quick substitution of history expansion problematic? |
1,458,730,198,000 |
From man bash,
history -p arg [arg ...]
...
-p
Perform history substitution on the following args and display the
result on the standard output.
What does 'history substitution' mean here? Can you provide an example of its use?
Thanks.
I understand command line history substitution, and already tried thing... |
If you have history expansion enabled, and run history -p "!23:1", the expansion happens before the history builtin sees the designator !23:1, since history expansion takes place even within double-quotes.
However, if you either disable history expansion, or protect the exclamation mark with single quotes or a backsl... | The -p option in the bash history command? |
1,458,730,198,000 |
I am creating a script to configure a server from scratch, part of this is postgres. One of the issues I'm having is if a random password has an exclamation it seems to be expanded by bash:
I want run the following postgres command:
alter user root with encrypted password 'D1£example!2eNZY6P$9examplePassword';
But fr... |
psqlcmd1="psql -c \"""alter user root with encrypted password 'D1£LF1A\!2eNZY6P$9examplePassword';""\""
With history expansion turned off, the value of psqlcmd1 is
psql -c "alter user root with encrypted password 'D1£LF1A\!2eNZY6PexamplePassword;"
Inside double quotes, the only characters that don't stand from the... | Why is bash expanding history/exclamation-mark when between single quotes |
1,458,730,198,000 |
When does history expansion happen?
From bash manual
Enclosing characters in double quotes (‘"’) preserves the literal value of all characters within the quotes, with the exception of
‘$’, ‘`’, ‘\’, and, when history expansion is enabled, ‘!’.
Since double quotes are recognized at parsing stage by the parser,
is... |
Quoting the bash manual:
History expansion is performed immediately after a complete line is read, before the shell breaks it into words.
History expansion is the first stage of processing, even before shell parsing, which is why double quotes don’t protect !: the latter is processed before double quotes. It is hand... | When does history expansion happen in bash? |
1,458,730,198,000 |
I can't figure out how to write ! symbol in bash scripts when putting it in double quotes strings.
For example:
var="hello! my name is $name! bye!"
Something crazy happens:
$ age=20
$ name='boda'
$ var="hello! my name is $name! bye!"
When I press enter at last command the command repeats itself (types itself) witho... |
As you discovered, ! doesn't trigger history expansion inside single-quotes.
You could use printf with a format string containing the ! symbols in single quotes. For example:
$ name="boda"
$ printf 'hello! my name is %s! bye!\n' "$name"
hello! my name is boda! bye!
or
$ name="boda"
$ var=$(printf 'hello! my name is ... | How to write "!" symbol between double quotes in bash? [duplicate] |
1,458,730,198,000 |
I like to do non-greedy globs, but my Google searches hint that this is not supported. Is this the case? If so, why is it the case?
For example I'd like to use a non-greedy glob in history expansions, e.g. ^ff* ^open to open an mp3 previously ffplayed.
|
Zsh doesn't have non-greedy wildcards. The only place I can think of where it does non-greedy matching is when stripping a prefix with the parameter substitution forms ${VAR#PATTERN} and ${VAR%PATTERN} (as opposed to ${VAR##PATTERN} and ${VAR%%PATTERN} which match greedily).
It's always possible to translate a pattern... | Non-greedy (extended) globs in zsh |
1,458,730,198,000 |
I'm working with a command-line tool that provides a number of subcommands that all use the same binary, e.g. tool foo, tool bar, etc, and as I work, these commands are placed into my Bash shell history, for example:
7322 [2021-04-16 15:37:45 +0000] tool foo .
7323 [2021-04-16 15:37:47 +0000] tool bar
7324 [2021... |
You can use bash's "reverse interactive search", usually accessible via Ctrl+R. That key combination will bring up this prompt:
(reverse-i-search)`':
There, you can start writing the command and it will autocomplete from your history, with the most recent first. However, it matches the entire string you enter, so t... | Is there a way to match history entries on multiple words/tokens of the command, when performing history expansion? |
1,458,730,198,000 |
I have the following Bash script
set -o histexpand
set -o history
pwd
lc="!!"
which, when I run it in an interactive shell, prints
/home/user
lc="pwd"
I'd like to, instead of getting lc=pwd, get the last command used in the interactive shell by using history expansion. So if I run echo foo; ./script, I hope to get
... |
Using the shell's history expansion for getting the commands executed in the shell session previous to running your script would not be doable unless the invoking shell saves its history to $HISTFILE after each executed command, which bash does not do by default, and exported the HISTFILE variable, which it does not ... | Using interactive's shell history expansion inside a script |
1,458,730,198,000 |
similar to the existing $_ which I learned stands for !-1:$, I would like to create aliases for $__, $___ and so on which refer to the 2nd or 3rd -last command. I have tried adding
alias "$__"='!-2:$'
in my .zshrc.local. If possible, I would like to write a zsh-function which gives back the 1st argument of the n-th l... |
This functionality already exists
You don't need anything complicated to access the last word of previous commands. Just press ESC-. (i.e. Alt+.) or ESC-_ (i.e. Alt+_). This invokes the editor command insert-last-word, which inserts the last word from the previous command line. Press the key again to get the last word... | Setting up aliases for a history expansion pattern |
1,458,730,198,000 |
I want to accomplish this:
setopt HIST_SUBST_PATTERN
echo Ninja_Turtles_2003_S02E05_DVDRip_30NAMA.mkv
^E(0?)^E$((match[1]+1))
# resulting in:
echo Ninja_Turtles_2003_S02E06_DVDRip_30NAMA.mkv
But I get:
echo Ninja_Turtles_2003_S02E1_DVDRip_30NAMA.mkv
I tried ^(#b)E(0?)^E$((match[1]+1)), but it didn't work.
|
You need the extendedglob option for (#b).
Also 05 + 1 yields 6, not 06.
You could do (with extendedglob and histsubstpattern)
^(#b)E(<->)^E${(l:2::0:)$((match[1]+1))}
Or:
echo ${_//(#b)E(<->)/${(l:2::0:)$((match[1]+1))}
<-> is a form of <x-y> positive decimal number matching operator where both boundaries are omit... | How can I increase a number found by wildcard in the previous command? (zsh) |
1,458,730,198,000 |
I could do:
!systemctl:p to get systemctl reload bind result printed (as last command in the history starting with systemctl string).
but doing the same with the partial search on the command history:
!?reload:p results in zsh: no such event: reload:p
the former looks the most recent event in the history that starts w... |
Per the manual (emphasize mine):
!?str[?]
Refer to the most recent command containing str. The trailing '?' is necessary if this reference is to be followed by a modifier or
followed by any text that is not to be considered part of str.
so in your case it's
!?reload?:p
that is, you need a trailing ? after the sea... | printing and not executing the result of zsh history expansion on partial search |
1,458,730,198,000 |
I am having to to rewrite history expansion commands, instead of calling it from history.
For Example, I have to change 35 to 36, 37, 38.... in the following command.
$ print -P '\033[35mThis is the same red as in your solarized palette\033[0m'
$ !!:gs/35/36
Now I need to make it !!:gs/36/37
However, when I use the U... |
I have two suggestions how you can approach what you want (referring to bash only):
add it to the history
Before typing the first history expansion command line you can disable history expansion (set +H) and "execute" the history expansion command (and then reenable with set -H). It then is part of the shell history ... | View History Expansion On History |
1,458,730,198,000 |
I've just come across !$ (without quotes). I've not met this before and did some tests:
$ ls -l
(...some output...)
$ echo !$
-l
$ echo "!$"
-l
man bash says this in the section on history expansion:
$ The last word. This is usually the last argument, but will expand to the zeroth word if there is only one word in t... |
It depends on if you want to add a set of quotes around the word from history expansion, or not.
Assuming foo="abc def", compare
$ echo $foo
$ printf "<%s>\n" !$
vs.
$ echo $foo
$ printf "<%s>\n" "!$"
The former produces printf "<%s>\n" $foo, invoking word splitting, and printf gets two arguments after the format st... | Should history expansion be quoted? |
1,458,730,198,000 |
I know that I can simply substitute a string with another in the previous command by typing:
!!:gs/string1/string2/
But how I can perform multiple substitutions, e.g. having a command:
echo "AAAAAAAAAAAAAAAAA" > test1
I want to substitute A with B and 1 with 2, so execute such a command:
echo "BBBBBBBBBBBBBBBBB" > t... |
$ echo "AAAAAAAAAAAAAAAAA" > test1
$ !!:gs/A/B/:s/1/2/
echo "BBBBBBBBBBBBBBBBB" > test2
That is, just add the second substitution to the end of the first. Just be aware that the second substitution will act on the result of the first.
| Multiple substitution when repeating the previous command |
1,458,730,198,000 |
I haven't yet been able to find this among the Bash documentation so I was hoping it could get answered if I asked it here. Is there any way that I can, on execution of a script, branch its history (that is, to have the same history as the shell in the parent process which invokes the script, without using source or .... |
Running a shell script starts a Bash process as a non-interactive shell. In this mode, history expansion doesn’t actually get carried out. From the Bash manual page, man bash:
HISTORY EXPANSION
The shell supports a history expansion feature that is similar to the history
expansion in csh. This section describes what... | Persistent Bash history between detached processes |
1,396,660,916,000 |
Many people have talked about this issue but I've not found a satisfactory answer.
I'm on a debian jessie. Currently I have tried nvidia-driver as the driver but it caused the system to crash; so I have purged all the nvidia packages. But the problem is that /etc/X11/xorg.conf has been replaced with NVidia settings an... |
Xorg -configure while X is not running did it for me - I'm on Debian Sid (unstable).
You MUST NOT have X running when you do this, and must be in a console TTY. (ctrl-alt-f1/f2/f3/f4/f5/f6)
To stop your X server (if running), you may have to stop a desktop manager/login manager (e.g., xdm, gdm, lightdm, kdm, but there... | regenerate xorg.conf with current settings |
1,396,660,916,000 |
I am using Manjaro KDE edition. I have a system with Skylake i5 processor and hybrid graphics.
System: Host: aditya-laptop Kernel: 4.4.8-1-MANJARO x86_64 (64 bit gcc: 5.3.0)
Desktop: KDE Plasma 5.6.3 (Qt 5.6.0) Distro: Manjaro Linux
Machine: System: HP product: HP Notebook v: Type1ProductConfigId
... |
It was a bug that got fixed with the next release of the kernels.
If someone has to use the affected kernel, they can use the radeon.nopm=0 kernel boot time option which is a workaround.
The related bug report here on freedesktop.
| Getting error while using xrandr --setprovideroffloadsink in Manjaro after update |
1,396,660,916,000 |
As shown from this blog, Fedora 25 now has NVida graphics binary driver support and users has an option to launch applications with "Launch with Dedicated Graphics Card" with right click on an icon, if your computer has hybrid GPU (Intel/NVidia) configuration.
Given this option, I would like to write scripts to launch... |
As seen in the QA test case, you only need to specify the DRI_PRIME=1 environment variable when launching the application, like so:
[dkarlovi@amelie ~]$ glxgears -info | grep REND
GL_RENDERER = Mesa DRI Intel(R) Sandybridge Mobile
^C
[dkarlovi@amelie ~]$ DRI_PRIME=1 glxgears -info | grep REND
GL_RENDERER = Galliu... | Script to launch an application with dedicated graphics card (Fedora 25) |
1,396,660,916,000 |
My computer has one integrated graphics card and 2 Nvidia RTX 3070 GPUS. I am using Ubuntu 20.04 and nvidia-driver-530.
lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation AlderLake-S GT1 (rev 0c)
01:00.0 VGA compatible controller: NVIDIA Corporation GA104 [GeForce RTX 3070 Lite Hash Rate] (rev a1)
0... |
In the prime-run script, I also need to set the variable
__NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G{CARD#}
using the card identifier found in xrandr --listproviders.
The official Nvidia guide listed below has the resolution to this problem, but I did not read the guide closely enough and missed it on my first read.
h... | Force graphics to run on specific GPU |
1,396,660,916,000 |
I own a HP ProBook 450 G0 laptop, running Ubuntu 14.04 (3.16.0-33-generic x86_64). This particular laptop has two GPUs and I want to be able to switch between them. I'm looking for a free driver or utility that would allow me achieve this, but I'm wiling to install proprietary software if no other solution applies.
Th... |
From the lspci output I can only see one Intel graphics card, make sure there is a AMD card and that it is enabled in BIOS. Also you can use the Additional Drivers window to install the proprietary fglrx drivers:
If that or installing fglrx/fglrx-updates does not work, you can download the drivers from AMD's site (th... | How can I make hybrid graphics(AMD/Intel) work on Ubuntu? |
1,396,660,916,000 |
I'd like to play Steam Linux games on my laptop. Those games work fine on the Windows partition, but on Debian's one the games run slow. I searched for the reason why they run so slow on Linux, and I found out that my 2nd graphic card wasn't used, so, now I'm trying to activate it. The reason of that post is that I st... |
The solution was finally to install a more recent OS, Debian 9 was enought. Then I installed firmware-amd-graphics from the non-free source, and now it's working:
xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x7b cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 3 outputs: 5 as... | Discrete Graphic Card activation on hybrid laptop |
1,396,660,916,000 |
I have a Dell Latitude e6420 laptop with a discrete Nvidia NVS 4200m graphics card in addition to an Intel HD 3000.
When at home, I use a docking station which is connected to another monitor. I used to have my monitor connected to the docking station via DVI which worked perfectly fine. But as I recently got a new ... |
I just tried this solution again. However, I changed /etc/bumblebee/xorg.conf.nvidia before running optirun intel-virtual-output and it worked this time. The Archwiki didn't mention that this must be done beforehand so I had only changed the configuration files afterwards and re-running optirun intel-virtual-output p... | Unable to get Displayport output working with a Nvidia Optimus Laptop |
1,396,660,916,000 |
I am relatively new to Linux. I have installed Endeavour OS on my laptop (an HP Victus 16), and noticed underwhelming performance on apps like waydroid. It seems like linux is only detecting the iGPU in my system. When I run
xrandr --listproviders
it gives me the output
Providers: number : 0** !
Even going to Setti... |
There isn’t so much to do for amd since most of the drivers are open source. You will want to install xf86-video-amdgpu if it isn’t installed already.
pacman -S xf86-video-amdgpu
You can also append DRI_PRIME=1 to the program invocation
You can also use Get-The-Right-AMD-Driver Website to get some more drivers for th... | Linux can't seem to detect my dedicated GPU on laptop |
1,396,660,916,000 |
I have a Dell XPS 15 [L502x]. it comes with an Nvidia GeForce GT525 GPU card.
It's an Optimus laptop so an Intel card powers the main display but the hdmi out port connects to the Nvidia card.
I have never had the HDMI out work in Fedora and would like to rectify that.
Before I go back down the various rabbit-holes ar... |
I guess the answer is that no, no-one can post a working config for hdmi out on a Dell L502x laptop running Fedora 25.
That's a real pain.
I'll get back to this eventually and when i have a working config I will share it here for others.
| Can anyone post a working config for hdmi out Dell XPs 15 L502x with Fedora 25 |
1,396,660,916,000 |
I have a laptop with integrated AMD graphics and discrete Nvidia GTX 1650Ti.
$ sudo lspci
...
01:00.0 VGA compatible controller: NVIDIA Corporation TU117M [GeForce GTX 1650 Ti Mobile] (rev a1)
01:00.1 Audio device: NVIDIA Corporation Device 10fa (rev a1)
...
05:00.0 VGA compatible controller: Advanced Micro Devices, I... |
I use system76-power Works well.
Also see https://askubuntu.com/questions/1341945/disabled-dedicated-gpu-powers-on-after-suspend
| Disabled dedicated GPU powers on after suspend (and also just randomly) |
1,562,937,219,000 |
Please, how to get rid of IBus service/IBus panel when running KDE?
This Gnome(?) keyboard layout manager (?) can get into conflict with the layout set natively in KDE Settings. I need to switch often between CZ and UK keyboard and IBus makes it impossible.
The severity of this issue can range from a visual irritatio... |
I had a similar issue, though possibly slightly different as I don't intend to keep using Gnome.
Removing ibus-gtk, ibus-gtk3, ibus-gtk3-32bit, ibus-lang, and ibus (all ibus-related packages on my system; yours may be different) seems to have worked with no ill effects after a reboot.
You can remove them by running zy... | KDE: how to get rid of IBus keyboard selector |
1,562,937,219,000 |
I'm wondering where is the config file of ibus stored? I checked ~/.config/ibus, and there's only a dbus socket. And no ~/.ibus folder available.
|
For newer versions see Koterpillar's answer.
IIRC ibus uses gconf to store its settings so you should be able to use either gconf-editor or gconftool (CLI) to get/set those settings.
| Where is config file of ibus stored? |
1,562,937,219,000 |
I'm using Fedora 30 with KDE and am trying to bind (Zsh) autosuggest-execute to Ctrl+Enter for convenience. I'm trying to get it to work in gnome-terminal.
However I discovered that showkey -a always returns ^M in these three cases: Enter, Ctrl+Enter, and Shift+Enter.
I tried this method (Ctrl <Return> : "\033M" in .X... |
No need to install ibus, etc. All X11 apps have access to the exact keycodes and to their xkb / xim translations, and may ignore the latter.
The problem is in the terminal emulator, and with the fact that there's no standard way to represent key combos like Ctrl-Enter in the terminal. Also, each terminal emulator has ... | Ctrl-Enter, Shift-Enter and Enter are interpreted as the same key |
1,562,937,219,000 |
I am Vietnamese, I use ibus to type Vietnamese on my Debian. I just started to learn Hungarian and I need to type some Hungarian characters which I can't type with ibus-unikey, like ë, ö, ő, ü or ű.
Other characters like á, ó,... I can type with no problems as we have them in Vietnamese as well.
I added Hungarian to m... |
You can configure and use the composeKey:
Under gnome Desktop :
From the system settings choose keyboard >> keyboard layouts >> option then Select position of compose key extend it and choose (eg: Caps Lock)
To get the accented character press :
[composeKey] + [accent character] + [letter]
e,g:
Caps Lock + " + o ... | Type Hungarian special alphabets on Debian, ibus |
1,562,937,219,000 |
This is a variant of this question. But the provided answers either don't seem to work or would entail not being able to have Zoom (cf below).
Situation:
I run Kubuntu 21.04 with KDE Plasma 5.21.4
Zoom requires IBus. I have Zoom and I need it.
IBus has by default an icon on the system tray in addition to the default ... |
If you need Zoom and don't want to repackage zoom.deb, one option is to let IBus be installed, but disable it at the user level (so that the default input manager is used) by having the line
run_im none
in the file .xinputrc.
Edit: To fully get rid of ibus I ended up using the script from Grief's answer to repackage ... | KDE: how to get rid of IBus sys tray icon and keep Zoom |
1,562,937,219,000 |
I'm trying to get ibus's popup selection to work. I followed the instructions in the Arch wiki, by installing the ibus and ibus-libpinyin packages.
ibus appears to partially work. ibus-setup works fine, and I can select inputs. In my text editor, I can then switch between English and (say) Arabic. Input changes as exp... |
Inspired by the Arch wiki, I added export QT_IM_MODULE=ibus to ~/.xprofile, which fixed it. I was initially thrown, because "normal" ibus input worked without this fix. In any case, I've edited the wiki to be a little clearer.
| How can I enable ibus's input popup? |
1,562,937,219,000 |
I am running Debian 11 Bullseye for AMD64 on an HP Pavillion Touch 14-N009LA laptop, using IBus and MATE as desktop environment, having upgraded recently from Buster. Prior to upgrading point release, I could use the Latin American keyboard layout with IBus; afterwards, I am no longer able to do so.
The Keyboard Prefe... |
UPDATE. I've found that the latest commit in the IBus source has the blacklist already implemented, and that all Latin American layouts are blacklisted by default.
This affects the generation process, which is done with a Python script on build time, which in turn, sources the available X layouts from /usr/share/X11/x... | Trying to add the Latin American Spanish keyboard layout on IBus for Debian Bulleye in MATE, but I only get Spaniard Spanish |
1,562,937,219,000 |
I am wanting to get the Ibus IME (Anthy engine for Japanese input) working in all my window managers.
Unity is fine, along with Compiz and Metacity.
But the one I really want to get it working with is spectrwm (a tiling window manager - i3m, xmonad are others).
I tried running the ibus-daemon, but any of they keyboard... |
While in the middle of posting this question, I found the answer haha.
I first entered the following into a terminal:
$ ibus engine
xkb:us::eng
I then got the list of engines to find what I needed to change it to (output cropped for brevity):
$ ibus list-engine
language: Estonian
xkb:ee::est - Estonian
language: Sl... | Getting Ibus working with tiling window manager |
1,562,937,219,000 |
My Window Manager/Desktop Environment has some applications where the dead keys (e.g.`, ~, ö) are not working by default, when I press then, they sometimes doesn't show at all on key press, sometimes they don't have the expected behavior('`'+ 'e'= è). They do work on some applications though, like here on firefox. How... |
Tutorial
Hello guys, I'm here to address this common problem we all once faced. The purpose of this tutorial is to solve this problem once for all. The information is out there, but is all over the place and sometimes we feel confused with the amount of different approaches that we can find to resolve this problem. He... | How to make Dead Keys(Compose) Work with Window Managers? |
1,562,937,219,000 |
I've added my arabic layout in /usr/share/m17n and I've no problem with Alphanumeric and Keypad mapping, it works fine. Here's how it looks like:
(input-method ar phonetic)
(map
(arabic
("1" "١")
("2" "٢")
.
.
.
((KP_0) "٠")
.
.
.
;;((G-1) "١")
;;((G-2) "٢")
)
(state(init(arabic)))
If ... |
I just had to move AltGr part in between Alphanumeric and Keypad to make it work in this way:
(input-method ar phonetic)
(map
(arabic
("1" "١")
("2" "٢")
.
.
.
((G-1) "۩")
((G-2) "ﷱ")
.
.
.
((KP_0) "٠")
.
.
.
)
(state(init(arabic)))
| AltGr isn't working with ibus-m17n in KDE Neon |
1,562,937,219,000 |
I'm using Fedora 18. I choose ibus in input method selector. In ibus, I choose preference to change input method. But I just see english-english method. I cannot choose input method for another language.(there is a dropbox, but all language is blur, but english). So, I don't know how to choose another language. (in my... |
You need ibus-anthy and ibus-unikey for those two languages so:
yum install ibus-anthy ibus-unikey
To set IBUS up follow these Fedora 17 guides (it should be pretty much the same thing in Fedora 18):
japanese , vietnamese.
| Fedora 18 : install input method |
1,562,937,219,000 |
I am using MX GNU/Linux v19 (Patito feo). I have installed these three packages with apt.
ibus
ibus-mozc
ibus-anthy
I can confidently say that they got installed correctly as I can see this in the Japanese section of ibus-preferences.
I can see the ibus icon in my panel too!
but I still can't input Japanese. It is... |
No, you do not toggle between xkb and ibus. You fully switch to ibus - it will support both multi-key and single-key languages.
Not sure how it is done on MX GNU, but in Debian derivatives there always an "Input Method" section in the settings, where you do a complete switch to ibus, fcitx, xim, etc (the option "none"... | How to toggle between ibus and xkb? |
1,562,937,219,000 |
I'm using Devuan GNU/Linux [based on Debian 11 Bullseye].
I have Xfce as my DE and use ibus-m17n as my input tool.
In Ubuntu, in the I-Bus settings dialog, I used to find the keyboard layout for the chosen language. The last version of Ubuntu that I used was 16.04 LTS.
Ever since I shifted to Debian and eventually Dev... |
Found the very easy-to-read .MIM files in /usr/share/m17n/.
These files have all the necessary information.
Thanks to Mohan, senior member of Indian Linux User Group - Chennai [ILUGC] for sharing this.
| Info about input method and keyboard layout |
1,562,937,219,000 |
When working on linux (mint mate 17.2), need kill ibus daemon and restart it for some reason.
After that one of the editor which is a wine application can't use the ibus input anymore, while other non-wine application could.
Trying to restart the wine application or ibus again won't fix the problem. Restart the machin... |
Finally, I have found a solution.
Solution
Run ibus-setup, then choose yes when tip whether start ibus.
This way the wine application could also use ibus.
Tips
Previously, I use ibus-daemon & to start ibus, and wine can't use it.
Not sure, what trick ibus-setup did.
| After restart ibus, can't use it in wine application |
1,562,937,219,000 |
i want to be able to write Kanji on my Opensuse system, so i followed this tutorial: http://www.localizingjapan.com/blog/2013/11/20/japanese-input-on-opensuse-linux-13-1-kde/
It does not work, because the ibus tray is not shown and it doesnt react to the key combination which should switch the input method. (yes, i ad... |
The answer for me was to install ibus, ibus-anthy and anthy again, reboot and Update my Opensuse. After doing this, it worked.
I hope this helps anyone who stumbles across this weird bug in the future.
| Opensuse 13.1 Gnome Desktop Region&Language won"t open after installing ibus |
1,562,937,219,000 |
Is this project became abandoned? As Bcooksley stated at this post, the authors has stopped developing IBus, and this is the reason why Kubuntu removed the Language Option in the System Settings. I want to have a confirmation. Is it dead? Or is it just not suitable for Kubuntu
|
Based on the comments of @slm, the answer is no. You can go to https://code.google.com/p/ibus/ to ask an question.
| Is IBus stopped developing? |
1,562,937,219,000 |
I can't find anything clear of how linux is handling the keyboard. (system based configurations not gui)
My problem is : I installed ibus on a linux mint with several languages but it just doesn't work, despite ibus-setup, ibus-daemon -rx...
Maybe my system is using another input method than ibus ?
Is there a command ... |
The input method used (IM) is actually set in ~/.xinputrc.
Run the command im-config to choose your input method.
Or maybe simply add manually run_im ibus inside your ~/.xinputrc : It is what im-config is doing.
Of course you need to restart X.
| Switch to another input method |
1,562,937,219,000 |
I'm using IME/iBus to type Chinese characters using Pinyin (Intelligent Pinyin 1.6.92 in Debian Jessie with Gnome 3.14.1). Now, I'm trying to type the word 旅行 (lüxing = travel), but all I get is 路性 (luxing), because it doesn't seem to recognize the two dots over the u, which makes ü.
Is this a bug? Or am I missing som... |
Have a look here
It is Mac oriented. It says to try: nv
And says
V is the standard convention to represent ü in pinyin input systems...
It refers to Wikipedia which says
Since the letter "v" is unused in Mandarin pinyin, it is universally used as an alias for ü. For example, typing "nv" into the input method wou... | How to type ü in Pinyin IME? |
1,562,937,219,000 |
I try to get IBus input methods working on my Debian testing (bookworm) under Gnome 43. For example pinyin
I installed it with
sudo apt install ibus-pinyin
When I switch to Chinese now the Chinese input works only in GTK apps but not for example in Firefox or in Electron born apps like Atom or Signal.
What could be t... |
I could fix this issue by editing the file /etc/environment
I added the following lines:
QT_IM_MODULE=ibus
XMODIFIERS=@im=ibus
So the files' content is the following:
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"
# Custom: Add Searchable command palette to ... | IBus input method is working in GTK apps only on Debian testing (bookworm) |
1,562,937,219,000 |
So for stability issues, I had to switch back to MX Linux, in its KDE version, since I am a KDE lover. But this time, something very unusual happened. I installed ibus-avro properly, added that in ibus-preferences, added the required lines in ~/.bashsrc and made ibus-daemon run automatically upon booting. Ibus-daemon ... |
Actually, the problem was with KDE, it seems to have a hard time with IBus. IBus usually prefers gtk file finders, whereas, by default, in KDE, the file finder package is Qt. So it(IBus) gets itself stuck in a collision. And eventually, the problem has no apparent solution. Even you log out after installation, you may... | Installed Ibus-avro, open-keyboard, ibus-daemon is running background but unable to type in Bengali in MX Linux KDE |
1,562,937,219,000 |
I'm not sure if this is a bug, or error of expectation or configuration - but when I switch language with IBus (with the m17n engine) it appears not to affect the open window. However, if I open a new one, or close and reopen the existing application, the new language selection takes effect.
My intended use case is to... |
With the IM envionment variables set in my .xinitrc:
export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus
it did work after a restart. I thought I had logged out and in already, but perhaps not, that should probably be sufficient.
| Change IBus language in current window |
1,562,937,219,000 |
I've noticed it on the Desktop on which I installed Arch linux yesterday. It used to work on the laptop until I ran pacman -Syu today! As far as I've seen, it never worked on libreoffice-fresh, calligra and wps!
It still works with firefox, atom, vscode on both the laptop and desktop, how to fix this issue?
|
I never had to add those export ... lines in .bashrc over the past 2+ months on linux. For libreoffice-still, I've to add these two lines:
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus
in ~/.bashrc and for calligra, I've to add all three of these:
export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_I... | ibus-m17n input method no longer works on libreoffice-still |
1,320,253,328,000 |
Often times I will ssh into a new client's box to make changes to their website configuration without knowing much about the server configuration. I have seen a few ways to get information about the system you're using, but are there some standard commands to tell me what version of Unix/Linux I'm on and basic system ... |
If I need to know what it is say Linux/Unix , 32/64 bit
uname -a
This would give me almost all information that I need,
If I further need to know what release it is say (Centos 5.4, or 5.5 or 5.6)
on a Linux box I would further check the file /etc/issue to see its release info ( or for Debian / Ubuntu /etc/lsb-rele... | How can I tell what version of Linux I'm using? |
1,320,253,328,000 |
I understand what GNU Info is and how to use it, but what is it for? Why does it exist in parallel to the man pages? Why not write detailed man pages rather than provide a separate utility?
|
GNU Info was designed to offer documentation that was comprehensive, hyperlinked, and possible to output to multiple formats.
Man pages were available, and they were great at providing printed output. However, they were designed such that each man page had a reasonably small set of content. A man page might have the... | What is GNU Info for? |
1,320,253,328,000 |
I know that these command will help to get syntax and options for commands but my question is that how they differ from each other?
|
help is a bash command. It uses internal bash structures to store and retrieve information about bash commands.
man is a macro set for the troff (via groff) processor. The output of processing a single file is sent to a pager by the man command by default.
info is a text-only viewer for archives in the info format out... | Difference between help, info and man command |
1,320,253,328,000 |
As per my knowledge/understanding both help and man came at the same time or have very little time difference between them. Then GNU Info came in and from what I have seen is much more verbose, much more detailed and arguably much better than what man is. Many entries even today in man are cryptic.
I have often wonde... |
To answer your question with at least a hint of factual background I propose to start by looking at the timeline of creation of man, info and other documentation systems.
The first man page was written in 1971 using troff (nroff was not around yet) in a time when working on a CRT based terminal was not common and prin... | Why didn't GNU Info succeed man? |
1,320,253,328,000 |
The layout of my netbook's keyboard means that using the arrow keys for navigation is slightly uncomfortable. Is there a way to make GNU Info pages use vim-style hjkl navigation? I know I can
info printf | less
...and use j and k to scroll up and down, which is good enough as I use info pages for reading so navigatin... |
Yes, info has support for pretty much any key binding scheme you like; see http://www.gnu.org/software/texinfo/manual/info-stnd/html_node/Custom-Key-Bindings.html and note in particular the --vi-keys startup option for Info.
| Can I get vim-stlye (hjkl) navigation for GNU info? |
1,320,253,328,000 |
Using the ↑ and ↓ directional arrow keys to to scroll up and down the page in the GNU info pages causes the info page viewer to unexpectedly jump to another node, this is really disorienting.
How can I scroll down through the page and just have the info viewer/pager stop when it gets to the top or the bottom, and the... |
Posting as an answer, as requested.
Just don't use info to browse info pages. There is a standalone info browser named pinfo, and Emacs has, of course, its own Info Mode.
If you're using Vim you can also install the ref and ref-info plugins. ref is essentially a generic hypertext browser. It comes with plugins for ... | How to scroll GNU info pages without unexpectedly jumping to the next node? |
1,320,253,328,000 |
If man -t ls | ps2pdf - > ls.pdf is useful for outputting the ls man page via ps2pdf to pdf, what about info pages?
I've tried something like the following but with no success:
info -o info | ps2pdf - > info.pdf
All this does is output a blank pdf file called info.pdf and output the body into a text file.
|
Ah, info brings along the texi2ps and texi2pdf programs.
So if you find the info source (info.texi) you can generate beautiful (or bloated, depending on your point of view) PDF using:
texi2pdf info.texi
| How do you output an info page to pdf? |
1,320,253,328,000 |
On my computer (ubuntu 12.04), some info pages are missing, like for tar.
When I enter info tar, it opens the tar manpage instead of the tar info manual.
So how can I install these pages on my system?
|
On Debian and its derivatives like Ubuntu, the info pages are not installed unless you install the corresponding package-doc package for a given package.
So in your case:
apt-get install tar-doc
A notable exception (though that may only apply to Debian and not Ubuntu) is bash-doc. The textinfo bash documentation is n... | Some info pages missing |
1,320,253,328,000 |
What's the difference between info and pinfo besides color?
pinfo is:
a program for viewing info files
while info is:
Read documentation in Info format
I tried to search the web for the difference between these two command, but found no useful information.
|
pinfo was designed to emulate the behavior of the lynx web browser and make browsing info pages easier to do. Its interface and formatting abilities are somewhat more advanced than the original info was and it also supports viewing man pages including colorizing them. It has a little bit more understanding of the cont... | Difference between `info` and `pinfo` |
1,320,253,328,000 |
I enjoy having choices of $PAGER, e.g.
more
less
most
...
Can I enjoy the same choice when reading Info documentation? (i.e. info tar)
What are my options?
|
There's a list on Wikipedia, which includes the following:
info
pinfo
tkman
tkinfo (linked page also has a list of info viewers)
khelpcenter
emacs
khelpcenter relies on info2html which could also be used to enable reading info files with any browser. However, the converted pages lack tons of useful features, like se... | Alternative Info reader |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.