0
votes
0answers
18 views

Terminal Opens to Home Directory

This may be solved by a simple navigation command, but all of a sudden my terminal opens to [username:/home/username] $ instead of the normal username@computername:$ is this a configuration error or ...
0
votes
2answers
29 views

Terminal - Search entire directory for keyword

I am working on a Ruby on Rails project so I have to manage multiple files. I think I made a syntax mistake somewhere but I'm not sure well. It would be awesome if I could search for a keyword through ...
1
vote
1answer
39 views

What does “omitting directory” mean and how do I make it cp the directory rather than omit it

I am doing a data recovery for someone and enter the following command -Ubuntu:~# cp /media/Macintosh\ HD/Users/orlandocampoverde/Desktop\ (original)/VIDEOS\ ESPANOL/ /media/\$G\$\ ...
1
vote
2answers
37 views

How do I choose among the tab directory completor in terminal?

I type in for example: cp /media/Macintosh Then Tab so that it can correctly put in the formatting for Macintosh HD I then want it to complete among a few options if you press tab.. for this ...
1
vote
4answers
66 views

Change directory structure from /YEAR/MONTH/DAY/ to /YEAR-MONTH-DAY

I need to change my directory structure for my photos from /YEAR/MONTH/DAY/ to /YEAR-MONTH-DAY I know this can sort of be done with exiftool, but it will only work on files containing EXIF-tags, and ...
0
votes
1answer
36 views

Why doesn't 'cp /user/local' work?

I was trying to copy a directory to /user/bin (on Ubuntu 12.04). I tells me that I cannot create directory ``/user/local' No such file or directory`. Where did I make a mistake? sudo cp -r ...
0
votes
2answers
39 views

Move all lowest-level subdirectories (but NOT mid-level directories or files) to a target directory

Let's say I have a source/ directory which has many subdirectories. Some of these subdirectories have sub-subdirectories, and some of those sub-subdirectories have sub-sub-subdirectories, and so on. ...
0
votes
5answers
133 views

How to open a folder in linux via terminal? [closed]

How can I open a folder in a dir? say I change my current directory to: cd /root/dir/ then I list all the files there: ls folder1 folder2 folder3 Now I want to open folder1. If I try the "./" I ...
-1
votes
4answers
103 views

how to find a word in text files from a directory [duplicate]

Suppose that I have a directory with name _file and includes two sub directory like _1 and _2 and on each one I have some text files. I want to search a word like foo in one of these text files. How I ...
1
vote
2answers
127 views

Move images from sub-folders into new sub-folders

I have a folder composed of M several sub-folders, each of them containing some text files and N images (*.png) This is what the tree looks like: /parent/ /sub-folder1/ /data1.dat /data2.dat ...
1
vote
0answers
21 views

Find and Delete Empty Directories [duplicate]

How to Find Folders (Directories) That are empty (Not Containing Any Files) and Delete Them By Using Terminal Command or Another Method. Filtration (Finding Directories or Files) Less than 'N' bytes ...
2
votes
2answers
280 views

“sudo mv /fromdir /todir” - not recognizing the fromdir location

I'm trying to get a small folder (/test) with a couple small text files to a folder that I don't have write permissions for. I'm the sole user on this account and I don't know why I wouldn't have ...
0
votes
1answer
57 views

Can't Change To Document Directory [duplicate]

I'm brand new to Linux, and know pretty much nothing. I wanted to learn about the Linux terminal and started watching a video, the video showed how to switch directories and they switched to the ...
0
votes
0answers
90 views

MAC OSX 10.9.1 can not detect a specific directory created in Ubuntu 12.04

I created a directory on an external hard drive, named "All_Movies" using my laptop which has ubuntu 12.04 installed. This directory is pretty large(almost 560 GB) because of a lot of files. Now, ...
1
vote
3answers
70 views

Output Directory Contents to File

I have a directory html. I would like to output the files of the directory, including the path, to a file. You can do something like this with the command: ls -R scripts/html > out.txt But the ...
3
votes
4answers
103 views

Rename all the files “file.txt” in directory with multiple subdirectories

If I have a directory1 which has a "file.txt" and subdirectories: "week", "today", "last month". In "week" and "last month" is also "file.txt". directory1/ file.txt week/ file.txt ...
0
votes
2answers
147 views

How can I see the memory occupied by a file and folder and also entire directory from terminal?

I'm having some files and folders in the "My Documents" directory. What are the commands to see the size of a file and directory in a terminal?
2
votes
1answer
350 views

The file or folder /home/XXX/… does not exist. and cannot be deleted

I have a small problem with Kubuntu. I cannot detele some folders and files, it always says to me, the file or folder /src/ doesn't exist? and now I need to delete them, but i don't know how. someone ...
0
votes
2answers
245 views

How to delete this file?

I am trying to create a directory .ebextensions. Ubuntu 12.04 is telling me that there is already a file with that name; however, I have searched for it, and nothing comes up. I really need to create ...
1
vote
2answers
675 views

Linux Touch Directory Command

What does the command 'touch' when applied to a directory? dragos@Dragos--XPS-L702X:~$ mkdir test dragos@Dragos--XPS-L702X:~$ ls -l total 52 drwxr-xr-x 2 dragos dragos 4096 Oct 25 00:42 Desktop ...
0
votes
2answers
121 views

Command to view containing folder of an application in Ubuntu

Which command is used to view containing folder of an application? For example, I installed Emacs, Chrome,... on my computer, now I want to view folder that holds them. How can I do that via terminal? ...
0
votes
2answers
65 views

Change program call directory

I have to versions of a software (Tecplot). When I write "tec360" in the terminal it brings me the old version. How can I change the program call directory so that it will bring me the new version?
0
votes
4answers
195 views

How to access/delete a folder accidentally named with escaped characters? [duplicate]

I was setting up a cloud server and saw that I accidentally added a folder named ^[[4~ (with escape code). I want to see what is inside and if that was just a mistake then remove that directory. ...
1
vote
1answer
120 views

rmdir on my machine doesn't have the -r argument

I checked the man page for it using man rmdir and all it has is --ignore-fail-on-non-empty, -p, -v, --help, and --version. What am I missing? I'm using Ubuntu 12.04 LTS
1
vote
4answers
97 views

How to locate a sub-direcotry?

I want to locate a sub-directory build/debug within a folder Are there any shell command that can do this?
-1
votes
1answer
317 views

Delete One of two folders with the Same Name by command line [closed]

I want to delete one of two folders which is having exactly same name but containing different files in it. How can i delete specific folder from these two in terminal ?
2
votes
3answers
138 views

How to navigate through directories named with non-latin characters?

I just don't know if it's possible and how to cd for example in a dir that is not named with latin characters. Example: $ cd άλφα or $ cd альфа Update: In a terminal it is ok, but in a CLI ...
-3
votes
4answers
231 views

How do I change directories from the command line?

I'm try to change to my Desktop directory from the terminal. Running cd /home/desktop Gives an error in the terminal saying no directory found. What am I doing wrong?
12
votes
4answers
481 views

Restore 'cd ..' functionality after following a symbolic link

If I create a symbolic link in the terminal with a command like ln -s /path/to/some/directory symbolicLink and then follow the link with cd symbolicLink the terminal appears to think that the cwd ...
1
vote
1answer
218 views

How to see all directories from remote?

I am on Ubuntu 12.04 server, after I login as sudoer from remote, I try to see all directories with ls command nut nothing happens. I can switch to the home directory by using cd /home and I see ...
0
votes
2answers
333 views

move terminal out of home directory

To make a looooong story short, (trying to install lightscribe), It has installed to computer>opt>lightscribe>simple labeler> (launchbrowser.sh), which is a root folder. I am trying to open a terminal ...
4
votes
2answers
118 views

Using popd without removing last value

How can I get the behavior of using popd without actually popping the last directory off of the stack? In other words, I want to navigate back to the last directory that I set with pushd, but I want ...
4
votes
3answers
531 views

Going to the parent directory of a file with cd?

I am writing a .sh to do some work for me, but I am now at the point where I have to cd to the directory the file /path/to/file.end is in. terminal doesn't allow cd /path/to/file.end bash: cd: ...
41
votes
1answer
23k views

Differences between /bin, /sbin, /usr/bin, /usr/sbin, /usr/local/bin, /usr/local/sbin [duplicate]

I'm running an Ubuntu Server 13.04, but I see the same on a 12.04: I have six directories with command files. These are: /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin What are the ...
2
votes
3answers
4k views

How to copy a directory from one hard drive to another with every single file?

I have a folder I just luckily recovered sitting on: /media/sdc1/Pictures with a BUNCH of subdirectories and files that I need. I want to copy these to a folder on: /media/sdb1/Pictures What ...
2
votes
1answer
158 views

Automatically cd into directories?

In the terminal You use cd ../../........ to get to wherever you want, But I am lazy, I am wondering if it is possible to automatically cd into the directories if the command is simply the directory. ...
2
votes
1answer
113 views

What is the best directory for script files?

I have my own shell script files and I want to run them in terminal, keeping them in /usr/bin folder. But my question is: which directory is best for keeping files of my own script? I want to use this ...
4
votes
1answer
491 views

I am owner of a folder but cannot access it

I have a folder with my notes about the system inside. I am logged in as user1 cd masternotes produces: bash: cd: mastersnotes: permission denied whoami produces: user1 ls -l produces: ...
11
votes
4answers
17k views

How to open a folder (with GUI) from terminal?

I want to place a link/shortcut/launcher in my unity panel (ubuntu 12.10). I followed this tutorial on handytutorial.com to create a custom launcher and drag it to the panel. I just need to know ...
2
votes
1answer
84 views

Fail to log in Ubuntu for deleting my home folder

I moved my home folder("huangzhiwu") to /usr/share carelessly. Then after i noticed that ,i make a new folder named huangzhiwu in /home ,and moved all files from /usr/share/huangzhiwu to the new home ...
6
votes
2answers
475 views

How to 'cd' to a directory found with 'find'?

I have a file in gmai.rb in the below directory: root@ubuntu:~# find / -name gmail.rb|more /media/aruprakshit/FA686DE4686DA05D/Rubyscript/gmail.rb But when i am trying to reach to the Rubyscript ...
1
vote
1answer
79 views

wrong use of #MV

I've a done wrong use of sudo mv command. Example: sudo Mv/home/USER/Downloads/piff.pdf /root/PDFs Then the directory /root/PDFs has been changed to a plain text file. I can undo the command? I ...
5
votes
2answers
781 views

What does ./ mean?

What does ./ mean? For example: Does the following command mean moving files from Gapache2 folder to sites-available: root@ip-10-112-55-203:/etc/mds-1.2-beta4/sana/config/etc/Gapache2# mv ./ ...
6
votes
2answers
147 views

executing a .sh and ending in a different directory

I know there is a simple command for this, but I'm trying to run a file.sh, which contains lines like: mkdir $filename cd $filename the file executes, but ends in the file i began in. I know there ...
6
votes
4answers
30k views

How do I navigate between directories in terminal?

I am new to Linux and Ubuntu and have tried changing to folders/directories with some difficulty. Could someone explain why the following commands failed to change to the desired target ...
0
votes
1answer
189 views

Using the terminal to open a folder which contains japanese characters

I need to use the terminal to open a folder with a Japanese title. If I use - ls to see the name of the folder, all it shows is: " ■ ■ ■ ■ " . The actual title is: " 源氏物語 ". What should I do? Thanks ...
1
vote
2answers
3k views

Change directory colour displayed in the terminal

I would like to change the colour displayed of some folders when I do ls. Right now I have a directory with movies and I would like to be able to see the ones that I haven't seen in a different ...
8
votes
2answers
613 views

What does the l command do?

There is a command l available on my machine which appears to do nothing. which l also produces no output. Is this a real command, and does it actually do anything?
0
votes
1answer
129 views

Something is wrong with folders containing special characters

I can create folder with special characters (example mkdir Öäväaä), but ls -l in terminal shows ??v?a?. WinScp and mc shows it right (Öäväaä). How can i make terminal to show me right characters?
3
votes
1answer
230 views

Making data partition default partition

Recently I installed Ubuntu and Fedora on my system. Each OS has its own partition and I made a data partition to save my personal files. Now in Ubuntu when I open terminal its default location is ...