General :: Possible To Shorten My Directory Commands In Ubuntu?

Jun 20, 2011

When working on a rails app I like to open all of my files through the command line like so
CD my_app
gedit app/views/user/show.HTML.erb
Is there a way that I could shorten this so that I could just write something like
gedit user_views/show.HTML.erb

I would like the console to stay in the main directory, I just don't like having to type out app/controller/user_controler.rb every time I want to open the user controller. I know that I could just open the file with my mouse, but I feel like moving from keyboard to mouse breaks my focus a little bit. When I can just tap away at the keyboard it seems like I have a more smooth workflow.

View 7 Replies


ADVERTISEMENT

General :: Debian Without Basic Commands: 'No Such File Or Directory'?

Nov 10, 2010

My new VPS is running Debian 5.0 (bash 3.2.29), and some commands seems to be missing. For example the ps command is not here, neither is ls (but dir works). Is there a package missing or what's the deal?

:~# type ps
ps is hashed (/bin/ps)
:~# ps

[code]....

View 1 Replies View Related

General :: Shorten Current Path Name?

Mar 1, 2011

If i am using a terminal window (shell) and I am on a deep point of a folder tree it becomes difficult to read what i write, as well as the entire content of the window.Is there a way to shorten the name of the current path in a shell / terminal?I know that aliases can be used for commands, does it exist anything similar for paths?

View 14 Replies View Related

General :: Delete Oldest Directory And File Using Ncftp Commands?

Aug 17, 2010

i use ncftp for some bash script action. how to delete oldest directory and oldest file using ncftp commands?

View 3 Replies View Related

Ubuntu :: How To Backup Terminal Commands Directory

Jun 25, 2011

I wonder if there is a directory for a terminal commands that may I can backup the commands I have used in the terminal before.

View 7 Replies View Related

Ubuntu :: How To Shorten The Start Time

Jan 13, 2010

I installed xubuntu8.04 on my laptop(no other system),but when i started the system,there came out a grub and showed "press ESC to enter the menu"

I think this is a waste of time since i have only xubuntu on my lap, why do not just get in directly? why need a grub?i do not need so can i do something to shorten the start time? ( i know the menu is revovery option) by the way i can not mount my usb hard disk, the error shows:

View 1 Replies View Related

Ubuntu :: How To Shorten Grub List

Apr 3, 2011

my computer have windows 7 and also a ubuntu in it (i started with version 10.04). i've just updated my ubuntu and i found that the list in the grub menu got longer by 2.and i feel its a long list....

so how do i shorten the list... i'll be ok if i just have the latest Linux and its recovery mode. than memtest86 and the other and last Windows 7... i dont need the old ubuntu in the list.... its redundant.... i have startup-manager installed but does not do what i wanted...

View 7 Replies View Related

Ubuntu Multimedia :: Trying To Run Shorten Shn Format In Lucid?

Jun 20, 2010

so this is my favourite audio format (please kindly refrain from dissuading me to use it , it is not my question) and it worked fine up to karmic but i spent time today it seems okbut then when i run

Code:
shorten -h
or

[code]....

View 4 Replies View Related

CentOS 5 :: Commands After Screen - Using ./hltv To Switch Directory?

Oct 7, 2009

I'm running a Counter Strike 1.6 Game server on my centos 5 VPS. I can get it to run by simply switching to the directory, then doing: ./hltv Now, when I do that, it obviously closes when I exit Shell. So I do the following and it gives me errors then. screen -A -m -d -S hltv ./hltv My question is, do I need all of those commands after screen? I just simply want it to not close once I exit Shell.

View 5 Replies View Related

SUSE / Novell :: Ran Rm -rf On Home Directory Unable To Run Commands As Root

Jun 13, 2010

Accidently ran rm -rf while the pwd was /home/user-name

Now I'm unable to run any command whatsoever as root, ls,vi,cnf whatever, they don't work.

However the commands work as normal user.

I can guess that the files with root ownership in the home folder were deleted but I would like to revert everything back to normal and would like to know how to solve this problem.

View 5 Replies View Related

Programming :: Shorten The Long URL Without Using Database?

Aug 9, 2010

How to shorten the long URL without using database(i.e. without storing url entries in DB)?

View 2 Replies View Related

Ubuntu :: Way To Shorten Display-time Or Move Notification Dialog Box?

Feb 18, 2011

Notifications that popup in Ubuntu (e.g., for downloading items in firefox or Network configuration stuff) display a rectangular black box in the upper right corner of my Desktop. It often covers up items I need to access like logout items or links to my Account etc in a webpage I'm in. I often find myself having to wait for the Ubuntu dialog box to disappear before I can access whatever it is covering up.Is there a way to make these dialog boxes appear in the LOWER right corner instead? Also is there a way to shorten the amount of time that these notifications display before disappearing?

View 9 Replies View Related

Ubuntu Multimedia :: Playing Set Of Shorten Files From Command Line

Mar 3, 2011

i have a bunch of shorten files i want to play from the command line and ffplay will play them one at a time but i want to play them one after the other (the whole album)does not work i must have forgotten something as it plays one track then stops.

View 1 Replies View Related

Ubuntu :: Shorten "save History" Preference?

Jun 2, 2010

Firefox "preferences" has an option which say, "keep my history for at least --- days".This does not make sense. If I enter 10 days, it will keep my history for 10 days or 1000 days. If I ener 100 days, it will keep my history for 100 days or 1000 days.ame thing!!Shouldn't it say, "keep my history for no longer than --- days"?I just set mine to 14 days and I still have a month of history.

View 1 Replies View Related

General :: Link A Directory In Ubuntu To A Directory In Windows 7?

Apr 12, 2010

I've just installed Ubuntu 10.04, trying out linux for the first time. I'm wondering if it's possible to link my documents folder in Ubuntu to my documents folder in Windows, so that when I open the folder in Ubuntu, I am linked to the folder in Windows.

View 1 Replies View Related

General :: Use Mkdir Command To Create 'local' Directory In /usr - There Are Error - Cannot Make Directory

Jun 16, 2010

I am a student studying computer science course.

Well, I am facing problem when doing lab questions.

I must use DLXLinux bundled in Bochs (bochs.sourceforge.net).

I am required to use the /usr/local directory.

In /usr directory, there is no directory named 'local' but there is one thing called 'local@'. So, when I try to use mkdir command to create 'local' directory in /usr , there are error "cannot make directory.....".

Look at my screenshot at [url].

View 9 Replies View Related

General :: Perform A Long Directory Listing Of All Files In The /bin Directory That Have Exactly Three Characters In Their Name?

Jan 18, 2010

How do you perform a long directory listing of all files in the /bin directory that have exactly three characters in their name?

View 1 Replies View Related

General :: Files Created In A Directory Owned By Directory Group?

Jan 29, 2010

Is there a way, on Linux, to cause all new files created in a directory to be owned by the directory's group instead of the creating user's group?

View 2 Replies View Related

General :: Cronjob Directory / Send An Email If Directory Contains More Than Ten Files?

Oct 13, 2010

I want to run a cronjob every 15 minutes that checks a directory for files. If the directory contains more than ten files I want it to send an email to me.

All I have is this...

*/15 * * * * ls -l | wc -l | [filename] | mail -s "This is just a test" [email address]

I would rather not write a bash script. Is there an easier way to do this? I was looking into some commands like find and grep.

View 6 Replies View Related

General :: Find Directory Older Than X And Mv Directory With Sub Files Command?

Jul 13, 2011

I'm quite new to linux but I have configured a simple ftp server and it's working great. I have a FTP-Shared folder with upload and download subfolders. Under upload's and download's I have identical category subfolders like mp3's, movies, software etc. in both. As the guy's upload, I would like to create a line crontab where I can move all the content under /FTP-Shared/upload/mp3/* older than 14 day's to FTP-Shared/downloads/mp3/ recursively (Like in cp command), but the timestamp must be searched on the first directory and not sub files example: /mp3/Club Dance/CD1/Hallo world.mp3This is how far I got:[root@clients ~]# /usr/bin/find /FTP_Shared/upload/Mp3s/ -depth -mindepth 1 -mtime +14 -type d -exec mv -f {} /FTP_Shared/download/Mp3s/ ;This command moves the directory and files, but it is not recursively

View 4 Replies View Related

General :: Mount One Directory To Another While Mapping The Original Directory's UID To Another

Aug 23, 2011

I'd like to mount the directory /var/www/mysite to the directory /home/daniel/mysite, but also have the user of the mounted files mapped from the original user (www-data) to my own user (daniel). So that the file /var/www/mysite/index.php who's user is www-data will appear in the mounted directory as /home/daniel/mysite/index.php and be owned by daniel - and alternatively, if I create a file /home/daniel/mysite/test.php with my own user, it will be created in the original directory under the user www-data Is it possible? If not, what alternatives do I have so I can use an IDE and still make sure all the files belong to the HTTP server's user?

View 2 Replies View Related

General :: Create A Directory Named Like His Parent Directory

May 26, 2011

I need to create a directory named just like his parent.

Example:

I tried this but because there is "Space Characters" in the name of Parent directory, my script fails.

View 8 Replies View Related

General :: Using Cp Properly - Copy A Directory Somewhere Else Into This Current Directory ?

May 13, 2011

I am in my current directory. I want to copy a directory somewhere else into this current directory. Lets say I want to take it from direc1/direc2 and the directory I want to take is called demo.

Code:

That is what it shows in the man pages, but when I do that, it says cp: no match

View 5 Replies View Related

General :: Symlink Each Of The Files In One Directory To Another Directory?

Feb 11, 2011

If I have a directory /foo with a few files in it, how do I symlink each entry in /foo into /bar/? For instance, if /foo has the files a, b and c, I want to create three symlinks:

/bar/a -> /foo/a
/bar/b -> /foo/b
/bar/c -> /foo/c

View 3 Replies View Related

General :: Auto Mount More Than Directory In The Same Directory ?

Apr 7, 2010

How can i auto mount more than directory in the same directory ? i want to automount 2 home directories in the /home and still be able to enter the other home directories !

The problem that i've another account on the system with home directory joe when the user1 home directory auto mounted i become unable to enter joe home directory !

View 1 Replies View Related

General :: Changes Directory To The Previous Working Directory?

May 15, 2011

Just a simple question

Code:
$ cat -
do in the Bash? I know 'cd -' changes directory to the previous working directory, but 'cat - ' does not seem to do the same thing.

View 3 Replies View Related

General :: Access Directory Outside Of Home Directory?

Apr 13, 2010

I'm using Mac OS X's Terminal.app shell to compile and run Fortran programs. One such program resides outside of my home directory (it is in the Applications folder, which resides on my hard drive but seems to be outside of my home folder). How can I navigate into this directory using Terminal.app to run the programs that reside there?

View 7 Replies View Related

General :: Unix Commands Same For Mac And Ubuntu?

Aug 21, 2010

I wonder if the unix commands (cp, mv, grep, args etc) are the same for Mac and Ubuntu. Do they have the same parameter lists and so on or do they try to stay the same but are slightly different?

View 3 Replies View Related

General :: Bought RAM For Ubuntu 10.10 Box - Can Just Pop It In Or Do Need To Run Commands?

Feb 21, 2011

I just bought 8GB of RAM for my old desktop which I'm using as an Ubuntu dev box and secondary workstation. Can I just install the RAM and go merrily on my way or do I need to run some commands for Linux to take recognize and take advantage of the extra memory?

View 8 Replies View Related

General :: Ubuntu: Commands With ' ' Are Failing?

Jul 31, 2011

so i'm trying to create a file with the current date as the prefix in the following way (following instructions from a tutorial):

Code:
touch 'date +%F'.log
its creating the file as:
date +%F.log
instead of 2011-07-31.log

[Code].....

what am i getting wrong/missing/failing to understand?

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved