0
votes
2answers
33 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
19 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
139 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
37 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
81 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
60 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
89 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
74 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
348 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
139 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 ...
0
votes
2answers
455 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
113 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
51 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
170 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
99 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
93 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
255 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
124 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
188 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
391 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
195 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
257 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
96 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
408 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: ...
0
votes
1answer
2k views

No such file or directory problem

Im using 32bit version of ubuntu and the terminal seems to not detect any directory... any command im trying to use to the folder or a file ends with that error. The command im trying to use is: ...
31
votes
1answer
16k 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 ...
1
vote
3answers
3k 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
137 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
99 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
365 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: ...
8
votes
4answers
12k 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
81 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
460 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
76 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
623 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
144 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
21k 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
156 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 ...
6
votes
2answers
533 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
124 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
222 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 ...
1
vote
3answers
361 views

Removing a directory named after a file

I've been looking for a code snippet to place in a .sh that removes a directory named after a file. What I mean by this is I would like to move to specify a directory and then search it for a list of ...
4
votes
0answers
564 views

How can I rename a folder using the terminal? [duplicate]

Possible Duplicate: Whats the simplest way to edit and add files to “/var/www”? I need to rename it in the terminal because it is in the root directory in Lubuntu. I have a ...
2
votes
2answers
7k views

How to scan a folder with AVG via the command line?

I'm running avg anti virus on linux and I'm using only the terminal. So sudo avgscan / -a -H -c scans the whole disk, is there a way to scan just a specified folder (also scans for the folders within ...
2
votes
2answers
4k views

Configuring Dropbox on Ubuntu server

I've got a Ubuntu server running on an old laptop. The OS is on a 4GB USB drive and I use a SATA drive attached for storage. Now I wanted to set up Dropbox on this machine. I've got it running using ...
2
votes
1answer
3k views

Where is the directory for your web contents using LAMP?

Okay, I have used XAMPP and Apache on Windows before, but I have never tried it on Ubuntu... On top of that, I am using Ubuntu Server with 12.04 with CLI, no desktop environment or GUI. I believe ...
2
votes
3answers
3k views

Why does `cd downloads` fail with “No such file or directory”?

Running Ubuntu 12.04, while in a terminal, I type ls and see list of folders, including the downloads folder. I then type cd downloads, press enter. I get bash: cd: downloads: No such file or ...
7
votes
3answers
62k views

find a file using the terminal

I am trying to find a directory, using the terminal and I am not sure where it is. I mean that i used the wget command to obtain the file and used it for installation and now i am not able to find ...
3
votes
2answers
2k views

rc.local runs .sh file in wrong directory

In rc.local I added a line for my shell file I want to run on boot: /direc/tory/<fileName>.sh The script looks like this: #!bin/sh wget "http://somesite.org/someJava.jar" -O ...