General :: How To Navigate Certain Directories With Bash

Jun 28, 2011

I'm very new to working with the terminal on my macbook pro and am trying to understand how to navigate into certain directories with it. I can't seem to get out of my username directory. I'm trying to access MAMP/htdocs and get those files into my git repository. I'm new to all of this. I am typing and getting this:
David-Adamss-MacBook-Pro:~ davidadams$ cd Applications/MAMP/htdocs/barcodes
-bash: cd: Applications/MAMP/htdocs/barcodes: No such file or directory
I need to get the "davidadams$" out of that line but I don't know how to navigate out of it.

View 6 Replies


ADVERTISEMENT

General :: Bash - Mirroring Of Multiple Directories - Hard Linking

Apr 11, 2011

I have 5 FTP users that upload files (and subdirectories) in their home directory, i need to mirror theese directories beetween them and with a "master" directory (accessible from a 6th user). Files can contain spaces or others special caracters. All the files are in the same filesystem, and i want to use hard link because i don't want to waste 5 time the space of a single file. I tried with find but i cannot handle spaces in it.

View 1 Replies View Related

General :: Delete All Files (except The Four Newest) Throughout Directories Using A Bash Script?

Aug 16, 2011

I'm looking for a Bash script that will go into a list of directories and delete all but the four most recently created files.

How can I do this?

View 4 Replies View Related

General :: Cannot Navigate Through Ubuntu

Feb 1, 2010

I brought a computer online which is operated by Ubuntu and I know nothing about it. I had an HP printer that I couldn't get to function. I was told that HP didn't have drivers (or something like that) for Linux Ubuntu. I just brought a Lexmark which showed on the box was okay for Linux but when I load the installation disc I can't figure how to get to the "Welcome" screne and follow it through the installation. I do not kow computer terms (a newbie) and will need to be taken step-by-step through the process, if it's even possible.

View 12 Replies View Related

General :: How To Navigate To Slackware-install Forum?

Jul 6, 2010

how do you navigate to slackware-install forum got there once .now can't find it

View 2 Replies View Related

General :: Use Cd Command To Navigate Back And Forward (like Browser)?

Sep 6, 2011

Is it possible to use cd command to navigate back and forward (like browser)?. Something similar to cd - but it only swaps current and last location. I know I can push dir on stack, it would be great to use cd -> and cd <-, though.

View 3 Replies View Related

Programming :: Synchronize Two Directories (bash Script)?

Feb 11, 2011

It achieves a bash script that takes two parameters (command line). These two parameters must be two paths of two directories (existing, and different such as not being of the other sub-folder). Path1 and path2 are for simplicity.The script will recursively visit the two directories and all sub-directories, sub-sub-directories, etc.. Looking for differences between their contents (files or directories). In particular, suppose that we work with both path1 and path2 directory, and scanned the files contained therein. These situations can occur:

* Path1 exists in a file that is not present in path2: in this case, the script displays the path of the file to you (print screen) and asks if he wants the file is copied in path2 or not. Reads the user's response and acts accordingly.

* Path2 exists in a file that is not present in path1: in this case, the script displays the path of the file and asks if the user wants the file is copied in path1 or not. Reads the user's response and acts accordingly.

* Both path1 path2 in a file with the same name but different contents: in this case, the script displays the path of the two files (which of course will start with path1 and path2 but end with an equal) to the user together with the two dates have been changed last time. Then asks if you want the file to be replaced by one in path1 path2, or that the file is replaced by one in path2 path1, or that both are left unchanged. Reads the user's response and acts accordingly.

* Both path1 path2 in a file with the same name and same content, in which case the script does nothing and proceeds with the next file.This is done for all regular files in path1 and path2. The special file (socket, device, symbolic link ...) are ignored. For folders in path1 and path2 is recursively by:

* Path1 if there is a folder that is not present in path2: in this case, the script displays the path to the folder and asks if you want the folder and all its contents are copied to path2. Reads the user's response and acts accordingly.

* Path1 if there is a folder that is not present in path2: similar at first.

* Both path1 path2 that there are two folders with the same name as the script works recursively on the two folders.

View 2 Replies View Related

General :: Create A Backup Directory And 3 Directories Within That And Some Files Within The 3 Directories And Then Back Them Up Ot Restore Them?

Dec 19, 2009

i am in need of linux help. iam at college and i need this back/restore script to pass this final part of an assessment. i require a backup script that will not only backup but also restore files to the relevent directories. e.g. users are instructed to store all wordprocessor files in a directory named wp. so i am needing to create a backup directory and 3 directories within that and some files within the 3 directories and then back them up ot restore them. l know i should/have to do this myself by been trying to get/understand info for the last few days and came up with zero.

View 14 Replies View Related

General :: Multiple Users To Create Directories Over SFTP So The New Directories Keep The Same Permissions?

May 15, 2011

I want to make a webserver with multiple users allowed to login through SFTP to a specific folder, www.Multiple users are added, lets say user1 and user2, and all of them belonging to the www-data group. The www directory has an owner www-data and a group www-data.

I have used chmod -R 775 on the www folder, but after I try to create a folder test through my SFTP server (using Filezilla) the group of the directory created has only r and x permissions, and I am not able to log in with the second user user2 and create a directory within www/test due to a lack of w permission to the group.

I also tried using chmod 2775 on www directory, but without luck. Can somebody explain to me, how can I make it so that a newly created directory inherits the root directory group permissions?

View 2 Replies View Related

General :: Navigate To Previous Directory In Windows Command Prompt

Mar 24, 2011

Possible Duplicate: Navigate to previous directory in windows command prompt

Is there an equivalent of Linux's cd - (change to previous directory) in Windows?

View 3 Replies View Related

Programming :: Bash Script For Cleaning Home Directories

Jul 25, 2011

Im running on Solaris 10 and I am trying to write a script that will look at all the directories in export.home and then grep for the those in passwd and will display the directories that don't have a password associated with them

Here is what I got so far but its not working.
#!usr/bin/bash
for i in 'ls /export/home'
do
test='getent passwd | grep $i'
if [ $test="" ]
then
echo "No Home Diectories Found $i"
fi
done

All this does is display what was listed in the export.home. What I want it to do is just display what was not found in password.

View 2 Replies View Related

Ubuntu :: Bash-completion + Mount = Failure To Complete Directories?

May 27, 2011

I've spent some time searching for answers to this and I haven't found much at all.Please feel free to post pointers to other threads that discuss this particular problem, if you find any.The problem is that in bash I want to mount an iso file to inspect the contents with the command:Code:sudo mount myCD.iso CDMount -o loopThe command works fine, but pressing tab to complete either the iso filename or the CDMount directory does not work. The completion suggestions I get are existing mountpoints which The completion suggestions should include the files and directories in the current directory. This worked with Ubuntu 10.04 and not with 11.04.

View 1 Replies View Related

General :: How To Store Files / Directories In Different Different Directories?

Mar 23, 2011

I am writing a script, in that my requirement is, if all the fill types stored in one directory from that we need to separate different different directories based on the file types.

for example in a directory(anish). 5 different types files
1- directory
2- .txt files
2- .sh files

like that and my requirement is the (1- directory is moved to one new directory(dir) which we are given in the script)and (2 .txt files are moved to another new directory(test) which we are given in the script)and ( 2 .sh files are moved to another new directory(bash) which we are given in the scrip)finally the directory anish should be empty..using bash script.how it is possible !!

View 7 Replies View Related

Ubuntu :: Bash Script To Recurse Directories And Exec Ffmpeg Using Find (possibly)?

Oct 3, 2010

I wrote a script that easily runs it in the same directory as it was run below: #for f in *.MTS do ffmpeg -i "$f" -acodec copy -vcodec libx264 -threads 2 -deinterlace -vpre slow -b 20000k -bt 3000k -refs 4 "${f%.MTS}.mp4" ; #done

I want to be able to use the find command so it will recurse through all the videos in my videos folder. Is there a painless way to do this. Here is the start of my find command but it doesn't work. Any help appreciated:

find . -name "*.MTS" -exec ffmpeg -i 'basename{}' -acodec copy -vcodec libx264 -threads 2 -deinterlace -vpre slow -b 20000k -bt 3000k -refs 4 'basename{%.MTS}.mp4'

View 8 Replies View Related

Debian :: How To Navigate As Root With Gnome

Aug 28, 2011

I run a minecraft server on my debian/gnome desktop and I need access to the files in the root folder and to the mysql folder but i cant log as root. i tried installing sudo and it didnt work. i know the su and su - but I want to change the files manually.

View 1 Replies View Related

Ubuntu :: Cannot Navigate To Any Webpage When TOR Is Enabled

Oct 25, 2010

Whenever I enable the TOR network in firefox using the torbutton, everything stops working. Clicking on links won't take me to a page. It seems like I cannot navigate to any webpage when TOR is enabled.When I disable it everything works fine.

View 9 Replies View Related

Ubuntu :: Navigate To Dvd Drive In Terminal?

Mar 5, 2011

how to navigate to dvd drive in terminal? what would be the address?

View 1 Replies View Related

Ubuntu :: Navigate Desktop Windows With Keyboard?

Jan 26, 2010

Ubuntu 9.10. I would like to be able to move between several open windows on my desktop with my keyboard rather than my mouseThat is, to change the focus from one window to anotherI can do this with the icons on the desktop by using the up/down/left/right arrow keys on the keyboard, but how to do this for open windows?

View 7 Replies View Related

Ubuntu :: Can't Navigate To Parent Folder In Nautilus?

Feb 5, 2010

I used to be able to open any folder in Nautilus and from there navigate to the parent folder. There was this arrow pointing up that had this function but I don't have the option any more.

View 9 Replies View Related

Ubuntu :: Cannot Figure Out How To Access And Navigate The Documentation?

Mar 14, 2010

I installed openjdk-6 on my ubuntu 9.10 system along the the documentation package and some other, related packages that looked promising but I cannot figure out how to access and navigate the documentation. (This is veering out of the scope of this forum but I also cannot figure out whether I have SJSXP installed or how to acquire and install it in case I do not.) Would one of you be gracious enough to help me figure this out so that I can get started?

View 1 Replies View Related

Ubuntu :: Navigate To The Windows Documents From Within Wubi?

May 8, 2010

I have just installed 10.04 LTS Wubi.The thing is, I can see no obvious way of seeing my files which were created in Windows e.g.Documents, photos etc. How do I navigate to the Windows documents from within Wubi?

View 2 Replies View Related

Ubuntu Security :: Cant Navigate To The Directory To Run The Script?

May 8, 2010

I am having trouble installing root kit hunter. I have downloaded and unpacked the package.It is in /tmpWhen I try and execute the command:

Code:
cd /tmp/rkhunter-1.3.6
I get an error message:

[code]....

View 1 Replies View Related

Programming :: Navigate To Subdirectories In A Shell Script?

Nov 23, 2010

I am having a directory.This directory has a lot of subdirectories which contain html pages and some c source code files,Makefiles etc etc.The script I am trying to write would be executed from one directory which has all these subdirectoriesFollowing is the set of directories and files you can see

Code:
ls
delete.sh lddbus Makefile misc-progs sbull scullc scullp short simple

[code]....

View 6 Replies View Related

Debian :: Use Backspace Key To Navigate Back Pages In History

Apr 24, 2011

In windows, using firefox you can use backspace key to navigate back pages in history. Now in Debian - I try and nothing happens. Does anyone know how to change that?

View 10 Replies View Related

Fedora :: How To Install From A .tar.gz - Navigate The Unix Terminal Directory

Dec 23, 2010

Im trying to install net-vi_2.2.1.tar.gz its my understanding that i need to navigate the Unix terminal directory to the either the tar.gz archive or extract the file to a folder and use that as the command directory for the terminal so my first question is how do i use that folder with the terminal? what command do i use?

After that i use the readme or install text file for the rest of the commands i need but im not sure cause ive never installed from tar.gz before

How to install a .tar.gz file ?

View 8 Replies View Related

Ubuntu Networking :: Can't Navigate .conf And Default Route Are Correct?

May 24, 2010

I ask your help to diagnose a problem. For business reasons I use a broadband internet connection via a mobile phone's connected via bluetooth [rfcomm]. Speed is not the maximum but it is more than sufficient for my work. For configuration of ppp I followed this guide Pon pulls up dialup, but I can't navigate also if resolv.conf and default route are correct. In addition I would like to use the NetworkManager that by default, does not see the device. I worked around the problem this way:

I modified the / etc / rc.local so that launch at boot time: # Rfcomm bind yes

After starting Lucid Lynx, bluetooth connects to the phone but NetworkManager does not see the modem.
When I run the connection manually, by: # Pon BluetoothDialup

NetworkManager sees the device, but can not use it because obviously it is locked by the ppp daemon.
So I close the connection with: # poff

Now NetworkManager sees the broadband modem via / dev/rfcomm0, dialup is performed properly. I can finally surf and just enable vpn with NetworkManager. all start automatically at boot, without the need to manually connect and disconnects the dialup to use, finally, the NetworkManager.

View 1 Replies View Related

General :: Write A Literal Bash Command In A Bash File?

Nov 29, 2010

I create a bash script that writes another bash file. But in the generated bash file I want to write a bash command in the file and not executing it.Here's my bash file:

Code:
#!/bin/bash
cat > ~/generateGridmix2data.sh << END

[code]...

View 6 Replies View Related

General :: Running Bash But Common Bash Commands Not Working?

Jul 17, 2010

below are the details of my system. I have bash as my current shell, some really common commands aren't working.

Do I need to do a re-installation of bash? Or how do I install a selection of bash commands which I need? (for example a subset of [URL])

Code:
root@sdptfw:~ # uname -a
Linux sdptfw.sdpt.co.za 2.4.36 #1 Tue Jul 22 13:13:24 GMT 2008 i686 i686 i386 GNU/Linux
root@sdptfw:~ # echo $SHELL$
/bin/bash$

[Code]....

View 13 Replies View Related

Ubuntu :: When I Navigate To System Personal File Sharing / Can't Create Share

Mar 27, 2010

I just installed the beta 10.04 LTS with Gnome Version: 2.29.92. I want to to create a network share but when I navigate to system>preferences>personal file sharing I can not create a share. The message indicates that the feature is not available because the required package is not installed. I tried to reinstall gnome-user-share and in reinstalled without issue but I still get the same thing. What am I missing? How can I create a network share?

View 2 Replies View Related

Ubuntu :: Use GNOME Panel Icons With Keyboard (shortcuts, Accessibility, Navigate, Keys)?

May 26, 2011

Surviving without mouse or touchpad I have been looking for this without initial success: only 2 oldie questions like the one I was going to place:
[URL]... But I found it!!: [URL]...

So the key keyboard shortcut is:
CTRL+ALT+TAB

With it you change the focus from the desktop to the panel, and vice versa When the focus in in the panel you can move from icon to icon with TAB (to the right) or SHIFT+TAB (to the left). Then Enter key (sometimes F10 instead) makes the same as left-clicking with the mouse, and SHIFT+F10 makes the same as right-clicking with the mouse. ESC key (sometimes Enter instead) takes the menus out.

There is something about this in: [URL]...

View 2 Replies View Related







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