Fedora :: Defined Aliases In File Not Working - No Command Found
Apr 15, 2011
Defining tcsh aliases through a .aliases file has worked perfectly for me for years and years using cygwin and older versions of mandriva. I am encountering very annoying and mysterious problems when attempting to do the same thing with a .aliases file in a fedora 64-bit VM. Strangely, if I define aliases in the file, they won't work, but if I do so on the command line, then they will.
Here's a simple example: Suppose I define an alias for "ls" in the file:
alias ls '/bin/ls'
Then source the file. This happens:
me: ls : Command not found.
me: alias ls
/bin/ls
me: /bin/ls
file1 file2 file3 etc.
me: unalias ls
me: ls
file1 file2 file3 etc.
me: alias ls '/bin/ls'
me: ls
file1 file2 file3 etc.
A second example: if I place either of these lines in my .aliases file:
alias d '/bin/ls -alF !:1'
alias d '/bin/ls -alF !*'and source the alias file, this happens:/ me: d
Bad ! arg selector. However, if I define the alias on the command line:
/ me: alias d '/bin/ls -alF !*'then the alias behaves correctly:/ me: dtotal 376
drwxr-xr-x. 10 r r 4096 Apr 14 16:05 ./
drwxrwxr-x. 6 r r 4096 Feb 21 16:15 ../
drwxr-xr-x. 3 r r 4096 Apr 14 16:05 bin.v2/
-rwxr-xr-x. 1 r r 193872 Apr 14 15:35 bjam*
-rw-r--r--. 1 r r 52804 Apr 14 17:20 bjam.my.log
drwxr-xr-x. 77 r r 4096 Nov 17 09:49 boost/
-rw-r--r--. 1 r r 989 Nov 17 04:51 boost.css
View 2 Replies
ADVERTISEMENT
Oct 15, 2009
Upon a fresh install of Fedora 11 (and as a Fedora n00b), I noticed there are several aliases defined for me.
Code:
$ alias
alias l.='ls -d .* --color=auto'
alias ll='ls -l --color=auto'
alias ls='ls --color=auto'
[code]...
files had these aliases. So where are they?
View 14 Replies
View Related
Sep 26, 2010
Output of my #alias command looks just as normal as one would expect:
Code:
alias +='pushd .'
alias -='popd'
alias ..='cd ..'
alias ...='cd ../..' .....
And still whenever I (as root) type in bash
#ll
which would be short for
#ls- l
i get output of the command
#ls -al
So where aliases for root overwritten? Usually I would expect .bashrc in the /root directory. Or at least .alias file. But there none of those in my current /root. So, my question is where root user gets it's aliases from? This concerns only root user. Normal user has .bashrc and I made up my own aliases in .alias and that's works jut fine. And yes I could make .bashrc file in the /root and .aliases where I would define my own things.
View 4 Replies
View Related
Aug 23, 2010
I m using Redhat Linux 5......I am trying to install Nero 4 DVD Writer s/w...It is an exe file ...
I have given permission like this:
Then i execute the file like this:
Its showing error like this:
View 9 Replies
View Related
Jul 7, 2010
Here is the block of code : (The red part is the code that doesn't work) The file is not created and see the output after the code. # i loop create environment structure and k loop create std procedure sub structure.
for i in TRAX2 TRAX BENCH PROD
do
eval mkdir $"acsayul02501_${i}"
eval chmod 2770 $"acsayul02501_${i}"
[code]....
View 3 Replies
View Related
Aug 11, 2010
I am trying to install ubuntu on an old machine and no matter what version I try to install I get this same error.
"No installable Kernel was found in the defined APT sources"
The versions I have tried are (9.04server. 9.10desktop, 10.04 server).
I have swapped both the CD drive and HDD drive becuase, well i don't know why, but I have. This didn't work.
I have read [URL] and have tried changing my BIOS settings so that i have my config is:
IDE Primary Master : Maxtor 6Y080L0 (HDD)
IDE Primary Slave : HL-dt-st-sl8480b (CD-DRIVE)
This didn't work.
I have also tried doing the instructions posted by migraineman on the second page of the thread mentioned above but this also didn't work.
My specs are:
Cyrix 6x86 Processor
80Gb Maxtor HDD
LG-GCE CD-ROM Drive
319Mb RAM - 8Mb Shared
View 4 Replies
View Related
Sep 22, 2010
Maybe it's just the program i downloaded and maybe something's missing, but when I run ./configure I get the error: ./configure: line 4: ruby: command not found it told me to try cnf configure and it says no such file Is this me, suse or the program I downloaded? Something's wrong here.. Maybe ruby needs installed?
View 2 Replies
View Related
Apr 28, 2015
I am currently trying to install Debian 8 "Jessie" AMD64 on a Dell Latitude E7240. I have two 256 GB SSD disks, on the first one I have installed Xubuntu 14.04 successfully. I want to install Debian 8 (XFCE) on the other one.I have tried using Debian-8.0.0-Live-amd64-xfce, Debian-8.0.0-amd64-DVD and Debian-8.0.0-amd64-netinst, all from a USB key (prepared with Unetbootin), but after successfully partitionning SSD disk, the installer raises the following issue:"no install-able kernel was found in the defined apt sources".
View 3 Replies
View Related
Jul 1, 2009
When in command mode one can come out of the file temporarily by Code: :sh in command mode. When I find myself on the shell on RH 9 the aliases dont work but in RHEL 4 all aliases work like charm. Does anyone know why is it so?
View 4 Replies
View Related
May 7, 2010
I can make aliases fine by editing the .bashrc file in my home directory, but the first thing I do when I open a terminal window is sudo su so I don't have to type sudo in front of every command. The problem is, I am then not able to use my aliases. How can I make aliases that work after I run the sudo su command?
View 2 Replies
View Related
Apr 1, 2009
I am able to send a mail message to myself from a server without any problem...
But after I have updated /etc/aliases and added the line for all of root's mail to be routed to me....
Added:
root: myemail@company.com
and ran newaliases to implement it....
If I send a mail message to root, it does not get routed to my email...
View 3 Replies
View Related
Oct 28, 2010
I recently P2V'd a debian box, and the aliases file (/etc/aliases) is no longer working. As the physical machine is still working, this machien has been renamed to buzz1 [from buzz].
I changed /etc/mailname, /etc/exim4/update-exim4.conf.conf [and ran the update-exim4.conf script] and also ran newaliases. however it still does not seem to be applying the aliases file:
Live Physical Machine:
buzz:~# exim -bt root@buzz.domain.com
R: system_aliases for root@buzz.domain.com
R: smarthost for cronjobs@domain.com cronjobs@domain.com
<-- root@buzz.domain.com
[Code]....
View 7 Replies
View Related
Jul 18, 2010
I am running KDE and currently using Konsole as my terminal emulator. I am finding that if I start a konsole from the menu list I can type alias and see a list of default aliases plus the ones I have define in my .bash_login file.
The problem seems to occur on restarting KDE. I generally leave everything open and when KDE restarts everything comes back. Saves me having to do it myself.
Unfortunately when the konsoles pop up they no longer have the aliases. There will be none of the predefined ones, nor the ones that I have defined.
Would I be better off using a more standard alternative like xterm in this case or is this something that has a simple explanation?
I suspect it has something to do with not being a login shell. If I look at the Profile in the menu for the konsole it specifically says "/bin/bash -l" for the command on the new one that I opened up, but "/bin/bash" for the one that was automatically brought back.
Is there some reason KDE would do this? Running Slackware 13.1 64 bit. KDE 4.4.3
View 4 Replies
View Related
May 10, 2015
I cannot find a bash command: "file" !
It say "-bash: file: command not found"
"file" is used to determine file type on a bash right ? is there a package i have to install ? deprecated ?
I use debian wheezy distro
View 2 Replies
View Related
Jan 3, 2010
I'm using a new Distro and after installing it and randomly searching for help on websites on how to install a .Deb file using dpkg at the konsole/terminal it says Bash : dpkg: Command not found . how is this possible ? Do I have to know about all the packages in the package manager to install this. slight difference for me ... knowing what I have and knowing if I need Apr93-323? (whatever) installed first or not ? The only thing I know is that I have the Iso image installed ... which is my linux distro . Where to go from here? because I usually go to a website site to find Software to install ...if I need it .back to the basics
View 14 Replies
View Related
May 27, 2011
find /var/spool/mqueue -group abc -exec rm -rf {} ;Using above command , I delete all the files belong to group abc.Now the problem i face is that the this command gives error that some files are missing . And this error occur because after creating list of files, it pass that list to rm -rf but till that time sendmail process queue and some of files disapper from /var/spool/mqueue.
View 5 Replies
View Related
May 18, 2011
How to manage the find command to return true or false if a file was found/or not? I tried to man find but didn't found anything.
View 12 Replies
View Related
Sep 20, 2010
I had edited the bashsr file wrongly in my ubuntu while trying to put a "export" command in bashsr for javac. Next when i am writing sudo , its saying :
Command 'sudo' is available in '/usr/bin/sudo'
The command could not be located because '/usr/bin' is not included in the PATH environment variable. sudo: command not found
View 3 Replies
View Related
Jan 24, 2011
I wrote a shell script and was able to compile it using SHC. after that i copied it to the /bin folder and tried running it as a normal user, but i keep getting the error " operation not permitted killed "
I tried changing the permissions. but it doesn't work. it only works with sudo. there must be another way. otherwise it won't be linux right?
View 11 Replies
View Related
Jan 27, 2011
Can anyone tell me what the pros and cons are between heirloom-mailx vs mailutils? This is for ubuntu 10.04 LTS. AT this point my only purpose is to use the mail command line program to occasionally send log output to email aliases.
View 2 Replies
View Related
Nov 15, 2010
-the command to copy the file Practice.txt to a new name of Myfile.txt while in the home directory-found
-command to create a directory in the home directory-found
-say i just created a new directory called "test". whats the command to delete the test directory.-found
-command to create a blank, text file without using an editor.
-the exact syntax in Linux you would need to rename the file to a new name-found
View 4 Replies
View Related
Jan 4, 2010
I am trying to run a script called install.sh as follows: I get a jar file, and extract it using the command: unzip filename.jar -D path/to/files then I navigate to that directory where I extracted the files, and run the command: sh install.sh (where install.sh is one of the files that has been extracted in that directory using the above unzip command.) running this command gives me an error:'nstall.sh: command not found.' among other errors in the script ( from that portion of the script that should not even be executed, which is really weird). However, instead of unzipping the jar file, if I just copied the same install.sh file to that folder, and ran the 'sh install.sh' command, the script runs fine.
View 6 Replies
View Related
Jul 26, 2010
have some problems in doing my project, my project title is ' in investigate into implementation of certification authority with small network ' ( with using Postfix, openSSL ) and i have builded up two different networks using debian and after that i need to make a mail server, so i configured Postfix and made a mail server, i can send and receive emails on both networks. now i need a shell script on received emails using Postfix, like mail is coming from outside then will go to pipe and there should a script in bash, that will run and check the email and deliver to others, or throw it away some thing like that... here are some links where i was looking
[URL]
View 1 Replies
View Related
Jul 18, 2010
I am getting following error "Invalid command 'ProxyHTMLEnable', perhaps misspelled or defined by a module not included in the server configuration" Saw this thread in /etc/apache2/mods-enabled/ I see
[Code]...
View 6 Replies
View Related
May 1, 2010
I am getting this error when trying to start apache. This is on a server that was functioning but now, when I tried to restart the server, this error shows up when trying to start the httpd service. The command that is causing the error is: CustomLoglogs/rosewood.access combined However, my guess is that it has something to do with either a module not being loaded or something wrong with the setup. But, as I said, this server was running so I am really not sure what changed. Server is Apache 2.0.52.
View 2 Replies
View Related
Mar 20, 2010
I have recently installed F12 in my HP Pavilion laptop. I am facing strange problem when I am trying to give a wrong command in terminal.
When I give the wrong command it says "command not found" but waits down instead of showing the prompt.
[codingfreak@localhost ~]$ e
Command not found.
View 11 Replies
View Related
Feb 28, 2010
when i try to use apt-get, It says command not found. Did I installed RHEL in wrong way or do I need to configure any file.
View 8 Replies
View Related
Jul 18, 2010
I am getting following error "Invalid command 'ProxyHTMLEnable', perhaps misspelled or defined by a module not included in the server configuration"
Saw this thread in /etc/apache2/mods-enabled/ I see
Code:
alias.conf authz_default.load autoindex.conf deflate.conf
dump_io.load mime.load proxy.conf proxy.load[code]...........
View 4 Replies
View Related
May 1, 2009
Which package provides easy_install? I seem to have python-setuptools installed but can't seem to find easy_install?
View 3 Replies
View Related
Jan 16, 2010
The goal is to do:
sudo apt-get install Virtualbox
sudo apt-get virtualbox
sudo aptitude install virtualbox
ive tried all those combinations and they all shoot back the same reply:
sudo: apt-get: command not found
Every forum ive read says that my Fedora installed wrong and that i am screwed. Can anybody help me with this please?
Also does anyone have a link to download a free windows xp iso for virtualbox to run off of?
View 8 Replies
View Related