Arabic character in centos [closed] - linux

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I try to create folder with arabic character at centos linux..
For example when i type
mkdir الاختبار
is working but when i try to view a folder using ls it's turn into question mark
i have another centos and but doesnt have this problem, already try to install arabic language
yum install "Arabic Support"
still not work for me and also try to install font
yum install dejavu-sans-mono-fonts
Does anybody have clue about this problem ?

Set your locale to something that uses UTF-8. The default "C" locale doesn't support any non-ASCII characters. Try this for example:
export LANG=en_US.utf8
Alternatively you can force ls to print the file names without mangling (this will work assuming your terminal supports UTF-8):
ls --show-control-chars

Related

Bash prompt display username starting with $ [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 months ago.
Improve this question
I have registered some linux machines intro AD with sssd and it works great, but I have an issue with the bash prompt. Some AD usernames start with $ and the prompt refuses to display it, so now I'm left with the string similar to #servername:~$
If I do an export PS1="\$USER#\H" it gets displayed correctly.
Any ideas on how to make bash prompt either escape the special character, or make sssd edit the bashrc with the "correct" format?
This is more of a Linux configuration question and would work better in unix.stackexchange.com or askubuntu, but generally to change default user configuration you'd want to edit the files in /etc/skel.

Unable to remove file on Linux [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I'm currently connected to a remote computer running on Linux and I have a random directory that arose after running one of my C programs. The directory name is of this form: 'H$'204'blahblah''u$'[]'$'234', very strange.
When I try to remove it via rm dir_name the terminal spits out Illegal variable name. The same behavior arises even when I use the -f flag. Then I attempted to remove it by clicking on the directory in the explorer (on vscode) and I get an error saying Error: ENOENT: no such file or directory.
I'm running this on csh shell if that helps.
Update: Running: rm ./H<tab> worked. Thanks to Jamie Guinan!
The magic word is ls -b. It will display non printable characters in an escaped way, so that you will be able to enter them back.

I am trying to open a excel file in ubuntu, but its displaying garbage characters [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
I am trying to read an xlsx file in ubuntu, but all it shows is garbage characters.
I am running the ubuntu instance in a docker, so i have no GUI. I am sending the excel file from windows to ubuntu and there i am trying to check if it has a particular text in it. How can I achieve this using terminal?
install xlsx2csv in the container and then use it to make a csv
csv can be read with any editor, bash tools etc
apt-get install xlsx2csv
xlsx2csv book.xlsx > convert.csv

How to add alternative to program that located in /usr/bin [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
Is it possible to substitute binary with same name alternative? I have /usr/bin/qtcreator
I want to use alternative version but /usr/bin/qtcreator is binary but not alternative.
What the way I should do this?
You could place your new qtcreator at /usr/local/bin/qtcreator, that location should have preference over /usr/bin.
You can check the possible locations for binaries and the order is which they are searched with echo $PATH and you can check which binary will be called with which qtcreator
In Bash:
$ alias qtcreator="/usr/local/bin/qtcreator"
or make sure the path to desired binary is mentioned before the undesired path in $PATH (... as mentioned by others).

Installed an RPM file. Where to find the installed program? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 9 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about programming within the scope defined in the help center.
Improve this question
I have installed xmedcon-0.11.0-1.i686.rpm on my Fedora Linux machine. I ran the RPM file. Since I'm kind of new to Linux, I want to ask, where can I find the installed file and how can I run it?
Thanks.
From terminal use
$ rpm -ql xmedcon-0.11.0-1.i686 </code>
/etc/xmedconrc
/usr/bin/medcon
/usr/bin/xmedcon
You will see all the files installed. The main files will be above. From command line
run
$ /usr/bin/xmedcon
In case you already know the command name, you can type which medcon in a terminal and it should tell you where the executable is located.
And as full.stack.xchg said, just typing the name of the executable on a command line (or finding it in the graphical menu) will start the program.

Resources