General :: Make A Save Command By Editing The .bashrc
Feb 19, 2011
I found this script [URL].. Basically this is a shortcut for cd-ing my file system..
I can type "save nm" where "nm" is any short name for the directory, like "blog" or "blg" Then whenever I want to go to nm I'll just use 'cd nm'
But it is not working out for me, I get this error every time I enter save:
bash: save: command not found
bash: parse_git_branch: command not found
So How can I make this command work?
View 1 Replies
ADVERTISEMENT
Dec 28, 2010
I get the following error on editing my .bashrc file.How to fix it??
Code:
karthick@Ubuntu-desktop:~$ gedit .bashrc
(gedit:3934): GLib-CRITICAL **: g_bookmark_file_load_from_data: assertion `length != 0' failed
[Code]....
View 4 Replies
View Related
Jul 28, 2010
I am doing a Linux installation. I installed the system fine and am trying to change the vi /etc/hosts file. I have edited the file but am not sure how to save it. I have --INSERT-- showing at the bottom.
View 2 Replies
View Related
Jun 14, 2011
When I add some path in .bashrc by commenting out old path and adding new one like this:
#EXPORT HOME_PLAY=/home/gem/old_play
EXPORT HOME_PLAY=/home/gem/play
EXPORT PATH=$PATH:HOME_PLAY
After saving above changes, I enter the command: source ~/.bashrc Now if I do echo $PATH, the path shows both the old PLAY_HOME and new PLAY_HOME. This is really bad and messes up a lot of things in my project. This problem only goes away if I logout or reboot, a rather very long process. What is happening is that the old path is added to new path element and the old path includes the old path element you want to remove.
View 10 Replies
View Related
Feb 28, 2010
I have added mkalias in my .bashrc file as I learnt here
[Code]...
View 1 Replies
View Related
Jun 16, 2010
my mediacenter is attached to an beamer with the optimal resolution of 1280*720 ubuntu 10.04 doesnt offer me this revolution (on my intel 915 graphis controller). this means i have to add this resolution to the possible resolutions. first i used cvt
Code:
cvt 1280 720 60
and got this result:
Quote:
# 1280x720 59.86 Hz (CVT 0.92M9) hsync: 44.77 kHz; pclk: 74.50 MHz
Modeline "1280x720_60.00" 74.50 1280 1344 1472 1664 720 723 728 748 -hsync +vsync
then i added this to xrandr
Code:
xrandr --verbose --newmode "1280x720" 74.50 1280 1344 1472 1664 720 723 728 748 -hsync +vsync
and
Code:
xrandr --verbose --addmode VGA1 1280x720
now i can select and use the new resolution - until next reboot. after an reboot 1280x720 is again not available. even if i work with sudo - the resolution isnt there....
View 1 Replies
View Related
Apr 20, 2010
I am having a lil headache with it.
Some time ego i edited my /etc/bashrc file to add some aliases and colours for my ssh console.
Today i had a need to change few thing but for some reason i can't edit or delete this file any more.
I am logged as root.
rm bashrc
cannot remove, operation not permitted
chown and/or chmod fails as well with "not permitted" errors.
ls -Al | grep bashrc
-rw-r--r-- 1 root root 2514 mar 31 13:05 bashrc
Any ideas what's going on?
View 2 Replies
View Related
Mar 31, 2010
I installed Windows XP Pro and RedHat Linux Enterprise 5 on my PC for my purpose. The PC is used by other family members too and they need only Windows OS for browsing. It is becoming problem for them to reboot after the PC enters into Linux by default. I am still learning Linux and I want to edit the /boot/grub.conf file to make Windows as default OS to boot. The following is the content of my grub.conf file (FYI):
#boot=/dev/sda
default=0
timeout=10
splashimage=(hd0,5)/grub/splash.xpm.gz
[code]....
View 4 Replies
View Related
Apr 5, 2010
I have some japanese music files stored on a flash drive that the titles of which are in japanese originally. While in the flash drive, when I go to Properties -> Audio, the title is written in japanese. It does not allow me to edit the file, no matter what permissions I have on it, therefore I can't change the name to english. So, I tried Rhythmbox instead, and transfered the file there. I could change the name, however there is STILL a huge problem.
I have around 300 japanese music files, all of which have to be renamed into english.
I did all this for all of them in Rhythmbox, and clicked "quit" when I was done. When I came back to transfer the files to my MP3 player like usual, I opened Rhythmbox, and...
ALL OF THE FILES WERE STILL IN JAPANESE! It didn't save any of the work I did on editing them. But, I calmed down and thought "oh, you can save playlists! I am sure that if I save them on one, it will keep the edits!" I did this, and it saved nothing. It took me 2 hours to finish the renaming, just to find out that it can't save information edits at all.
View 9 Replies
View Related
Nov 29, 2010
I am trying to figure out a way to make my own cd script.. i thought that prompting the user to type in her destination then saving that input to PATH system variable will get it done! but it does'nt work here what i made (i think it's not that smart!)
[Code]....
View 4 Replies
View Related
Aug 4, 2011
I would like to ask if there is any video editing program that can save to uncompressed file formats.
View 5 Replies
View Related
Oct 25, 2010
I have a few alias' in my .bashrc to save some typing, mostly ls type variants.
I wanted to add the following:
- give me a Long listing of ALL in Reverse Time order, (don't recurse directory)
Code:
But it doesn't work anything like the way it does on the command line
When I use the alias I get the following:
Code:
No Time, No Permissions, no group/owner ... , Why?
View 2 Replies
View Related
Nov 26, 2010
This question may be silly and super easy for linux connaisseurs, but I was just wondering, for instance, I want to use the >find command to search for a file and send the results to a text file
View 5 Replies
View Related
Jul 6, 2011
What is the Wget command to perform the following:
download only html from the url and save it in a directory
other file extentions like.doc,.xls etc should be excluded automatically
View 4 Replies
View Related
Mar 10, 2011
I wish to append a text at the start of every line and save it to another file without changing the original file.know the command
For example:
Orignal.txt
a.txt
[code]...
View 5 Replies
View Related
Sep 6, 2010
I am trying something a bit tricky.Suppose there is a website URL...Now suppose when i open a file /var/www/ test.php which connects to the above website to gather some info and then allow me to further in the process, i want it to instead direct to a file say /var/www/test_done.php.How do i edit my hosts file for such a scenario? Is there any other better option than using a hosts file ?
View 1 Replies
View Related
Feb 23, 2010
I am doing some embeded linux work in ARM 9263.So I need to make a image for that board.But when I using one command "make uImage" I am getting the following error.
make: arm-linux-gcc: Command not found
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
HOSTCC scripts/basic/fixdep
code....
View 4 Replies
View Related
Oct 25, 2010
a friend of mine gave me a .tar.gz file which contains a bunch of C sourcefiles and a makefile. I don't get how to use the make command to create an executable out of those files. What arguments do I have to give the make command?
View 5 Replies
View Related
Mar 16, 2010
how-to use the 'net' command to add/remove and list net work shares on a ubuntu box, you'd think it would be slam dunk to get it working, but alas, this is linux we're talking about. I've attempted to create a new share using the following command:
net share add Music=/home/joeblow/Music -C testing -M 1 -S joeblow-desktop -Ujoeblow%joeblowpass
which results in this error:
NetShareAdd failed with: Access is denied
I've also tried deleting an existing share using the following command:
net rpc share delete documents -S joeblow-desktop -Ujoeblow%joeblowpass
which results in the error code (5) and no error message. Note, I'm logged in as joeblow the user and I'm attempting to create create/delete shares in joeblows HOME directory. Also, I can create and delete shares from joeblows desktop via "Places->Home Folder->..." method and I can access these shares remotely.
View 3 Replies
View Related
Nov 15, 2010
Does anyone know of any good command line audio editing tools? I would like one that can take an mp3 file and crop everything but the first 30 seconds or so (possibly decompressing those 30 seconds as well).
View 2 Replies
View Related
Feb 27, 2011
I want something like
Code:
export ROS_PACKAGE_PATH=~/ros:$ROS_PACKAGE_PATH
to be done already for me when I open a new terminal. How do I edit the .bashrc so that this variable is always set already?
View 3 Replies
View Related
Jan 2, 2011
I'm running Ubuntu 10.04 and while trying to install the Wacom driver and kernel I get to the step after ./config and get this message when I use make.
make: *** No targets specified and no makefile found. Stop.
I've tried looking up on it and they all say that build-essentials should be installed first. So I looked into it and I found out that it's already installed along with the make command itself.
Anyway to get Ubuntu to recognize it as installed?
View 8 Replies
View Related
Feb 10, 2011
When I type PWD how do I make it run the pwd command?
View 3 Replies
View Related
May 20, 2011
I have just started using backtrack. I an a fresher into this field. In one of the assignment, I am giving command make stack.c in which it gives me the error makefile:l: *** missing separator. Stop.
View 2 Replies
View Related
Jan 31, 2010
Installed Filezilla FTP-client, and wants to save the downloaded files to my external OneTouch4 HDD. In Windows, you've got letters for different drives, like c: d: and so on. I understand my external HDD is /dev/sdb1/ in Ubuntu (9.1). My local place is just called "/" in Filezilla,I guess this refers to my root.It shows different folders, like bin, boot, cdrom, dev etc. When I try to type in /dev/sdb1/ here, I just get an error saying it does'n exist, or cannot be accessed.
PS: My external hdd is mounted, it has its own icon on the desktop.
View 4 Replies
View Related
Apr 25, 2009
Totem didn't play .avi movies by default after my new CentOS 5.3 install. In my effort to find a way to fix it I learned in another forum that installing VLC allows almost all video formats to be played. So I added RPMForge to my repository group then I found and installed VLC with no problem.
Now that VLC is installed and I've had a chance to use it, I've learned that it fails to save my brightness setting between launches. This is very frustrating because the default brightness is always too dark, which means I have to go to the controls and reset it every time I launch the software. Does anyone here know how I can save my brightness setting between launches?
View 1 Replies
View Related
Sep 29, 2010
I have the following as my $PROMPT_COMMAND in .bashrc:
Code:
PROMPT_COMMAND='
if [ $TERM = "screen" ]; then
MYPWD="${PWD/#$HOME/~}"
[ ${#MYPWD} -gt 20 ] && MYPWD=..${MYPWD:${#MYPWD}-18}
echo -n -e "33k$MYPWD33\"
fi
'
I am trying to append items to my PROMPT_COMMAND in another script/on command line. If I do the following:
[Code]....
I get no error. I've echoed the value of $PROMPT_COMMAND in both cases and their output is exactly the same.
View 4 Replies
View Related
Feb 25, 2010
I'd like a function in my .bashrc file that would allow me to pass text to it and echo the text to a specified file. I know it's simple as "echo 'text' >> file," but ideally, I would want to alias the function so I execute something like:
Code:
user~ $ write 'this is a test' with "write" being the function, and 'this is a test' being echoed to the file. I hope I explained that well enough.
View 3 Replies
View Related
Apr 5, 2010
A cluster with a head node and compute nodes. An application with a couple of env variables (App_HOME, PATH) set in .profile (default shell sh). If I login to the head node/compute nodes on a terminal everything works fine. The correct env variables are set and the application works. However, when my application tries to do it, say ssh <compute node1> <application>, it appears the environment variables are not available. It only looks in the minimal /bin, /usr/bin type PATH. This tells that the .profile is not being read
View 2 Replies
View Related
May 24, 2011
I'm trying to make and make install a driver for my wireless, every time, though, I use the make command, it'll start at 0 and cound almost up to 200,000 and then the computer freezes. I've tried different drivers, same result. I've tried ndiswrapper but that didn't work either.
View 8 Replies
View Related