12
votes
4answers
1k views

What does /dev/null mean in a shell script?

I've started learning bash scripting by using this guide: http://www.tldp.org/LDP/abs/abs-guide.pdf However I got stuck at the first script: cd /var/log cat /dev/null > messages cat /dev/null ...
0
votes
1answer
29 views

remove directory to Grandpa directory and delete the parent directory

Sometimes , we note that we have unuseful nested containers(directrories) . For example mkdir -p ~/grandpa/pa; And pa directory is the only file existed on grandpa. Hence , all files of pa ...
1
vote
1answer
39 views

What is dummy filesystem?

I tried df --help command to generate the man-page for help on df command and I am stucked with a unknown term Dummy filesystem This line in df manpage is where I get to know the term first time -a, ...
0
votes
1answer
158 views

Mounting Disk Image in Raw format

While Trying to mount a disk image in Raw(dd) format using the following command mount nps-2010-emails.dd /media/manu/ I get the following error message mount: you must specify the filesystem ...
0
votes
1answer
37 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
0answers
19 views

where are mounted files located after “connecting to server” over ftp

I've seen this asked about windows mounts here and MTP here, but to where should i browse inside terminal if i "Connect to Server..." over FTP? thanks in advance!
12
votes
5answers
616 views

Using cd command to navigate directories in Ubuntu which have special characters [duplicate]

When I want to navigate into directories having special characters in their names I get an error message. For example: aman@desktop:~/Aman$ cd !)e$!gn&(reate bash: !: event not found ...
2
votes
1answer
517 views

couldn't open output file: Read-only file system

I just installed Ubuntu. My problem is I am attempting to write a log file to home. I am using logcat from a python module called adb. When I attempt the terminal command adb logcat -f <path> I ...
14
votes
4answers
3k views

Why is moving directories to /dev/null dangerous?

When trying to move a test_dir directory to /dev/null, I get the message mv: cannot overwrite non-directory ‘/dev/null’ with directory ‘test_dir/’ Then why do people say "Don't run the command sudo ...
1
vote
3answers
78 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 ...
-1
votes
1answer
84 views

How do I access my Windows files from Ubuntu? [closed]

I've installed Ubuntu 12.04.3 as an alternate boot to Vista on my PC. When I boot to Ubuntu, however, the only hard drives I can see from the GUI are the two external USB drives that I have. I ...
0
votes
1answer
246 views

Some image files won't be displayed by Apache, returns 500 error (file ownership/permissions)

I just copied all my files from one Ubuntu server to another, and everything works fine, except that Apache returns a "ERROR 500 - Internal Server Error!" on image files that on the old server was ...
3
votes
1answer
109 views

Why can't I rename a file from 'NAME' to 'name'?

I am unable to rename a file from RELEASE to release which is currently located on my USB flash drive. If I try to rename it through the file manager (Nautilus), it shows the error message as ...
0
votes
3answers
125 views

Cat command error message

I am new to linux and am trying to get to know the command line and I got to the cat command and am having trouble with an error message. I am not quite sure what is happening here. Every time I type ...
0
votes
2answers
446 views

Need help mass renaming files using command line that contain a certain string

I have about 200 files that are named like this: 01_-_Back_Alley_Uproar.avi 01_-_Bad_Luck_Cat.avi 01_-_Beep_Beep.avi 02_-_Broomstick_Bunny.avi 02_-_Bunker_Hill.avi and so on. I would like to ...
0
votes
2answers
115 views

How do you know, using the CLI, the type of partition that corresponds to its id?

fdisk, and many other partition programs list the partition tables using a code or id for the partition type of each partition listed. How do you know the type of the partition, the type name (in ...
0
votes
2answers
782 views

Changing current directory to shared filesytem using linux terminal

I have a shared filesystem (E: in my installation of Windows 7) in which I keep my programming codes. I want to shift from Windows to Ubuntu for programming mainly because I like the linux terminal ...
1
vote
2answers
1k views

Why does cp not copy files?

$ ls -la /tee/mysql total 28675 drwxrwxrwx 1 root root 448 Jun 25 13:52 . drwxrwxrwx 1 root root 2896 Jun 25 12:12 .. -rwxrwxrwx 1 root root 18874368 Jun 25 13:19 ibdata1 -rwxrwxrwx 1 root ...
0
votes
1answer
324 views

How to recursively set permissions for files only?

I want to remove executable permission for all files in my home folder, recursively, how to do that using command line?
0
votes
1answer
401 views

print contents of a directory structure (filesystem) to CSV on the command line

How can I catalog the contents of a filesystem to a CSV file? This is particularly useful for removable media. I've found a couple links that point in this direction: AskUbuntu.com: listing files ...
46
votes
1answer
26k 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
2answers
164 views

How can I rename a file in a different path without changing the current directory or writing the path twice?

For example, I want to rename tif/fat/tul/codes/MyCode.pl to TheCode.pl in the same directory. Currently I know these: mv tif/fat/tul/codes/MyCode.pl tif/fat/tul/codes/TheCode.pl , which requires ...
3
votes
1answer
7k views

How to merge folders and subfolders?

I have two folders (ORIGINAL A and ORIGINAL B), and both do have subfolders. How do I merge these two folders (and subfolders) to DESTINATION C? a) ORIGINAL A and ORIGINAL B do have the same ...
3
votes
1answer
526 views

Ubuntu for phones - is there a terminal similar to the one known from PC's?

I am thinking about install Ubuntu on a phone. I spend a lot of time in terminal while working on my PC. There are much things I do using bash scripts, for example. Then, is there a terminal on ...
1
vote
2answers
917 views

Why doesn't “whereis” locate a file?

I was looking for a specific file using whereis from the command line. I got a rather useless result, but I then found the exact file I was looking for by manually searching. I did not make a ...
3
votes
1answer
163 views

Daemon for moving files between partitions?

I have a system with Ubuntu installed in 20GB and windows in 100 GB, two partitions - each of 100GB using NTFS. While using DC++ (multiple downloading of big file) I used to get message that system is ...
20
votes
2answers
10k views

How to open Nautilus at current command line directory?

I was wondering if anybody knew a command that would allow me to open a Nautilus (if that's the right name for the Ubuntu 12.04 graphic/window explorer) window from the command line at the current ...
4
votes
2answers
3k views

List of all shared folders

Is there possible to list all shared folders (with their physical locations) from command line?
2
votes
3answers
4k views

get device with mount point

there's a way to get the device name (/dev/sdx) with the mounted folder? i mean, get the assosiated device in a mount point using the mounted folder as the reference, or make a python dictionary with ...
1
vote
2answers
4k views

How do I use a sudo command line to copy a folder into the system files?

Specifically, my "themes" folder has been corrupted (my fault), and I need to replace the entire folder with a backup that I made. I will add a finalized answer once I can.
0
votes
4answers
2k views

Unable to “cd” into an external drive

I am new to Linux. So please excuse me if my question is amateur. I have two partitions: "Windows and Linux OS" Both are listed as Storage-Files, called under the name of "New Volume" The external ...
0
votes
2answers
767 views

Broken external harddrive (repair help)

A friend has asked me if I could fix this external harddrive without formating it. I mean, i need to get the files back and it seems to be corrupted. I took a picture: (its in spanish though)
0
votes
1answer
770 views

Terminal error File system read only (Solo lectura)

When I install a terminal application in the following error occurs Cuando instalo una applicacion por terminal me ocurre el siguiente error omega@omega-desktop:~$ sudo apt-get install wine [sudo] ...
2
votes
1answer
11k views

Difficulty trying to mount an ISO file “mount: you must specify the filesystem type”

I have an .iso file which I would like to mount. I have made a folder in /mnt/iso as a mount point. Now I try: sudo mount -o loop filename.iso /mnt/iso and the reply is: mount: you must specify ...
15
votes
4answers
4k views

What file system do I have installed?

Is there any way to check it from command line?
2
votes
2answers
3k views

Changing ownership of home folders

Okay, so I have a bit of a self-created problem. We were running out of space for SVN, so I moved our home folders to a new (much bigger) partition. This seemed to work fine at first, and SVN itself ...
22
votes
2answers
4k views

What does `~/ ` mean?

I'm new to Linux and Ubuntu. People keep using ~/filename in their answers to my questions. What does ~/ mean?
3
votes
3answers
3k views

Is it possible to check when a folder or a file is created?

I am looking for a way to check when a specific folder and also a specific file were created. Is it possible? My system uses the ext3 file system. Thanks a lot!
8
votes
2answers
1k views

How to monitor what files are opened

Is there a tool to monitor what processes open what files on the system so you can track down which process keeps touching a specific file? Lsof can find out if you run it while the process has the ...
3
votes
1answer
2k views

How do I access my Windows partition using the command line?

I had a problem with my Ubuntu install, and I need to uninstall it. However, I have one folder on there with an important assignment in it that I'd like to keep still. I can still get into Ubuntu with ...
10
votes
5answers
25k views

Command line option to check which filesystem I am using?

Is there a command that will show which file system (ext3, ext4, FAT32, ...) the various partitions and disks are using? Similar to how sudo fdisk -l lists information about disks and partitions?
5
votes
3answers
543 views

Is possible to make symlinks that 'follow' the file?

Behavior: me@local: tree . |-- ba | `-- file.txt |-- foo | `-- file.txt -> ba/file.txt `-- foobar now, let's say i move the file.txt from ba to foobar: me@local: mv ba/file.txt ...
11
votes
6answers
8k views

How to determine where biggest files/directories on my system are stored?

I was wondering how do you know where the largest files in my system are stored. For example--- Disk Space Used: 1GB Java: 500MB Java Percentage: 50% maybe represented in a pie chart. Maybe? I know ...
160
votes
4answers
138k views

How do I determine the total size of a directory (folder) from the command line?

Is there a simple command to display the total aggregate size (disk usage) of all files in a directory (folder)? I have tried these, and they don't do what I want: ls -l, which only displays the ...