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


ADVERTISEMENT

General :: Current Time - File Path No Longer Valid

Aug 21, 2011

I am reading about jiffies in linux kernel. In one of the related example in the book Linux Device Driver, the author use
head -8 /proc/currentime
to print out some time information.

However this file is not present in my linux installation (kernel: 2.6.32-131.6.1.el6.x86_64). Why is it the case? Is it because the file path is no longer valid, or it is a distribution feature thing? It is not present in OSX too. What would be an equivalent in OSX?

View 1 Replies View Related

General :: Command For Finding File / Directory From Current Path

Apr 30, 2010

I am total new to linux as I worked mostly on RTOS (symbian). My problem is, I need to find the file IOSTREAM.H and I am following commands below:
1) cd /
2) find . iostream.h ( finds the file / directory from the current path)
It shows No such File or Directory

View 7 Replies View Related

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 View Related

Fedora :: Nautilus - Search In The Current Path?

Apr 10, 2010

when i search in nautilus folder browser it search in my home path,how i can say to search in the current path?

View 2 Replies View Related

Ubuntu :: How To Find The Current (installation) Path Of A Tool

Jul 12, 2010

Assume I call a certain tool in terminal like

foobar -myoption

But a) there exists more than one installation of "foobar" on the system or b) I don't know where "foobar" is installed.

How can I find out WHICH foobar resp. WHICH path belongs to the currently active foobar tool?

I prefer a cmdline command with option similar to:

findactivepath -tool=foobar
....
Output: Used location=/usr/bin/foobar

I don't want to dig around with PATH investigations by searching every PATH component. Furthermore I don't want to get recommendations and expectations like "normally tools are installed in...". Think of unusual installed software.

View 1 Replies View Related

General :: Difference Between PATH=$PATH:$1 & PATH=$1:$PATH?

Jan 16, 2011

I found the following function in /etc/profile file.

[Code]...

1. I dont undestand what "if ! echo $PATH | /bin/grep -qE "(^|:)$1($|:)"" this if statement actually comapres??

2. Also what is the difference between PATH=$PATH:$1 & PATH=$1:$PATH

View 14 Replies View Related

General :: Move A File To Some Path And Create That Path When It Doesn't Exist?

Oct 8, 2010

I use this command:

Code:

find ./ -atime +360

to figure out the files that haven't been accessed since 360 days. The command above will return results like this:

Code:

/uploads/2010/02/some-file-name.ext
/uploads/2009/08/another-file-name.ext
... etc

I'm taking here about tins of directories, thousands of files. I'm looking to find a command that makes me able to move the results above to another path, and to create that path once it doesn't exist like below:

Code:

mv /uploads/2010/02/some-file-name.ext /old-files/uploads/2010/02/some-file-name.ext

But I want the executed command to create this path

Code:

/old-files/uploads/2010/02/

If it doesn't exist.

View 6 Replies View Related

General :: Forcing An Absolute Path Where A Relative Path Is Expected

Feb 21, 2011

I have a program that takes a relative path as input appends it to a some path string to get the actual path.

Now all I can input is the relative path. So if I want to go one level above my input will be ../mypath.

If I know the depth of the path used internally, I can use .. as many times to go to the root directory and then give the absolute path. But suppose I do not know the depth of the directory, can I construct a relative path string such that it considers it as a relative path. One way could be to have enough .. in the path string so that I can force an absolute path for some maximum depth of path.

Is there some path string syntax that I am not aware of but can achieve this?

View 2 Replies View Related

General :: Deleted Path Variable - How To Return To The Original Path Value

Apr 26, 2011

Experimenting with shell variables, accidentally deleted the path variable how could I return to the original path value. What kinds of problems will I have if I don't have a path variable.

View 3 Replies View Related

General :: Change Windows Path To Unix Path?

Sep 14, 2009

I have a path c:windowsackup I need this string to be changed into /windows/back/up I used the command -bash-3.00$ echo windackup | sed 's/\//g' but the output is windbackup

View 7 Replies View Related

General :: Change Absolute Path To Relative Path?

May 31, 2011

Current script:-

prefix=user@my-server:
find . -depth -type d -name .git -printf '%h�' | while read -d "" path ; do (
cd "$path" || exit $?

[code]....

How shall i go about changing the absolute path to relative path, so that /home/git/mirror/android/adb/ndk.git gets converted to /mirror/android/adb/ndk.git //echo <command> "$prefix$PWD.git" ?? - anything for relative path?

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

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 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

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

General :: Command Path Is In PATH But Bash Does Not Find The Command

Jul 12, 2011

kernel 2.6.21.5, slackware 12.0
GNU bash 3.1.17

Code:

As you can see, /usr/local/bin is in the path. However, bash does not look for nasm in /usr/local/bin.

If I am root, things go well:

Code:

View 16 Replies View Related

Programming :: Java Applet Not Loading Image With Relative Path But With Absolute Path / Resolve It?

Jul 17, 2009

Java applet not loading image with relative path(e.g. images/1.jpg) but loads image with absolute path(i.e. from /root/user/images/1.jpg) . This is a problem when i want to host the applet on web server

View 2 Replies View Related

Red Hat / Fedora :: Appending A Path To PATH Variable Permanently?

Oct 21, 2010

how to add a path to PATH variable permanently so that it remains persisent even after closing shell and rebooting the system when i added a path, to variable it remained there as long as i didn't closed the shell. but when i reopened it ,changed were undone.

View 2 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

SUSE / Novell :: Add Path To $PATH Variable?

Apr 19, 2009

I am trying to figure out how i can add the path /usr/sbin/ into the $PATH variable. I want this to be used from the normal account. I am bored settinh this manualy each time my computer starts.

View 2 Replies View Related

Fedora :: Add Path In .bashrc By Commenting Out Old Path And Adding New One - Command Source ~/bashrc

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

Programming :: Can I Get Absolute Path Without Giving A "path" But Inode Number By C

Aug 13, 2010

Does anyone know how to get the path with a inode number by C programming?
Or can I get the absolute path without giving a "path" but a inode number by C?

like this: get_path(unsigned inode);
not such this function: getcwd(".", xxx);
taowuwen@gmail.com

View 7 Replies View Related

General :: Samba File Permissions For Multiple Groups In The Same General Path?

Nov 4, 2009

I'm using my Linux (SLES 10) server as a File Server at this point. I need to set File Permissions to nested folders differently to different groups. For example:

homesharedengineering* should be read only for groupA
homesharedengineeringadmin should be read & write for groupB Plus read only for groupA
homesharedengineeringautocad should be read & write for groupC Plus read only for groupA

I've been using Webmin and Putty to set permissions but Putty only allows me the Default Group, it won't allow me to set several groups on the same directory. Webmin seems to allow me to add multiple groups (Webmin --> Others --> File Manager --> Info & ACL tab will provide extended abilities) but when I add multiple groups, they don't seem to take effect? I'm wondering if my setup at the 'Share' level or at the hierarchy of my folder structure (unix based) needs to be set specifically?

View 1 Replies View Related

Fedora :: 12 And VMTools - The Path "" Is Not Valid Path To The Gcc Binary

Mar 23, 2010

running Windows 7 64bit with VMware Workstation 7.01-build 227600. I have some knowledge of Linux, I have installed f12 and have updated the system as of 03/22/2010. All updates completed successfully.

1) How do I install VMTools on the f12 (after mounting the CD/DVD tool package)

2) How do I update the gcc files it says are dependencies?

Here's what I get on installation:Before you can compile modules, you need to have the following installed...

make
gcc
kernel headers of the running kernel

and then I am prompted for this input from the install script:

Searching for GCC...
The path "" is not valid path to the gcc binary.
Would you like to change it? [yes]

and this is where I get stuck. How do I get around this or satisfy the requirements for the install?

View 5 Replies View Related

General :: Why Is It Bad To Add '.' To PATH?

Aug 26, 2010

I've read one explanation saying it can allow malicious executables that are in the cwd to run in place of similarly named built-ins and core utilities.For something to wreak true havoc, wouldn't this only apply to root? And in any case, if '.' were appended to PATH instead of prepended, shouldn't that circumvent this "replacement" attack, since PATH's directories are scanned in order? (Aren't they scanned in order?)Are there any other issues besides this one?

View 4 Replies View Related

General :: Run An Ls Without Getting The Full Path?

Nov 11, 2010

I want a simple list of files in a directory that is not my current directory. I run ls /other/directory/*.txt and get:

/other/directory/file1.txt
/other/directory/file2.txt
I want:
file1.txt
file2.txt

How can I get the second list?

View 4 Replies View Related

General :: Sudo Sometimes Changes PATH And Not Others?

Jan 22, 2011

If I try "shutdown" as a normal user on Debian it give the "command not found" error. OK it's not in my PATH. But if I "sudo shutdown" it works. Somehow sudo seems to change my PATH.

Do the same in Slackware however and sudo makes no difference, I get "command not found" each time.

View 8 Replies View Related







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