5
votes
1answer
173 views

Cannot delete file from /home by rm command

I cannot delete a file in my /home folder. Terminal output give me the message: ~$ rm /home/goldap/Загрузки/Put Don Kihota (1934) bash: ошибка синтаксиса около неожиданной лексемы '(' Roughly ...
2
votes
1answer
58 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 ...
26
votes
16answers
3k views

How do I open a text file in my terminal?

There is a file named RESULTS.txt and I want to open this file in my terminal. (I mean I want to see the file contents be displayed in the terminal and not in some text editor) How do I do that ?
4
votes
3answers
195 views

“/proc/partitions not found” error is showing up

I am configuring a webserver in Ubuntu 10.04. More particularly I am installing DataStax OpsCenter. Unfortunately, the logs are spammed with this error: ERROR [pool-3-thread-7] 2013-02-15 ...
0
votes
2answers
133 views

How to install a program from a .tar.gz [duplicate]

I already extracted the file and when I drag the file to the terminal this is the directory I get " '/home/ali/Downloads/Stencyl-2.1.0 ". Now can someone give me exact instructions for this ...
1
vote
0answers
13 views

private folder in file server

I have active directory with 400 users. all the users have user accounts but all the pcs are not join the Active directory.I want all users who has not join the AD (can not log in AD)can have his own ...
0
votes
1answer
42 views

Can I save the command output to a file other than text-files?

I don't even know if it is possible. I've been trying to find an answer, and couldn't so I turn to everyone here for help! (In the event that it is possible.) I know it is possible to save the ...
2
votes
2answers
45 views

Write numbers to multiple files

I want to write the numbers 1-10 to two different files. I guess I should use the for loop to both print to the files and count from 1 to 10 as it loops but I don't know how.
1
vote
2answers
48 views

“No such file” error when directing output to a file

I am running Ubuntu 12.04. In my accounts .bashrc file I have the line alias ftreport='cd / && sudo tree > /home/<user name here>/Documents/Reports/Tree_$(date +%s).txt' After ...
27
votes
3answers
844 views

How can I open a file when I do not know what command opens it? [duplicate]

Ubuntu noob here. How do I open a file in a working directory? I have already tried ./MyFile.jpg And it replies with bash: ./MyFile.jpg: Permission denied Now, that got me thinking that I had ...
0
votes
1answer
108 views

How should I remove or empty these files or folders?

Below are the instructions that I need to carry out: 1. Navigate to the Symantec AntiVirus virus definitions directory (default location is: `/opt/Symantec/virusdefs`) in the terminal. 2. Remove any ...
18
votes
5answers
2k views

Is there a file explorer/manager for the command line?

I would like to know if there is something like DOS interface for Ubuntu. I mean a "GUI" that can run from the console (for example if you are using Ubuntu Server). Some file explorer like Nautilus ...
1
vote
1answer
98 views

How do I move .doc and .xls files to a new folder?

Situation: I finally convinced my dad to let me install Xubuntu on his desktop, since Windows XP had become extremely bloated, old - it's a mess. So I installed Xubuntu 12.10 alongside the Windows ...
0
votes
1answer
28 views

command to view the time lapsed [duplicate]

Possible Duplicate: Progress and speed with ‘cp’? I am executing a lot of commands of transferring data in Ubuntu using command line and these are really big file (both in numbers and ...
3
votes
1answer
175 views

Argument list too long when copying files

I just asked a question related to how I can count the files of particular extension. Now I want to cp these files to a new dir. I am trying, cp *.prj ../prjshp/ and cp * | grep '\.prj$' ...
2
votes
2answers
100 views

How to rename more than one files in ubuntu?

I have so many images more than 100 in a folder such as: apple.jpg grapes.jpg orange.jpg .... I want to rename all of them at once with ascending order numbers such as: 1.jpg 2.jpg 3.jpg .... ...
3
votes
2answers
132 views

How to copy many photo file names with date and time to spreadsheet

I have numerous motion detector photos (JPGs) I copy to a DVD every day. I would like to copy the file name, original creation date and time of each of these photos and then extract this information ...
1
vote
2answers
93 views

Command like inotify - or another solution?

Is it possible to recursively scan changed files from more than 3 weeks ago with inotify, or is inotify only for starting cron jobs? What other command can I try for checking for changed files that ...
5
votes
1answer
299 views

Is there a centralized history file for all the commands run from various terminals?

I am aware that every terminal has it's separate history,which can be viewed by the history command. Commands issued on suppose terminal tty1 will be shown in the history of tty1 only and not in the ...
4
votes
1answer
3k views

How do I extract a specific file from a tar archive?

Hi is possible to restore a single file from the .tar backup ? I dont want to restore total backup . i just want to restore one single file from the backup .
10
votes
4answers
2k views

Opening a file from terminal

When we want to open an application or file from the terminal, we type, say, okular file.dvi This opens the application, but also shows the status of the application. We cannot close the terminal, ...
1
vote
2answers
839 views

How do I combine all lines in a text file into a single line?

I want to get all lines in a text into one line. I'm a beginner at coding trying to learn by doing. I've spent four hours trying to solve this problem. I know there's a simple solution to this ...
2
votes
2answers
94 views

How do I paste the contents of a folder into the www root folder?

I want to take the contents of home/magpie/xoops-2.5.5/htdocs/ and put it into var/www using the terminal. I don't want to go downloading anything I don't need.
1
vote
2answers
1k views

no sudo permissions to /etc/hostname

When I try to edit my /etc/hostname file, using sudo nano /etc/hostname (or any other editor) I get the following: Error writing /etc/hostname: Permission denied I then tried: sudo chmod u+w ...
18
votes
3answers
5k views

How can I get octal file permissions from command line?

There is a chmod command to set file permissions, but can I get file permissions in octal mode (such as 755) from the command line?
1
vote
1answer
338 views

Reveal File in File Explorer

I have a Java application in which I need to "reveal" a file to the user (i.e. open the containing folder of the file in an explorer and highlight the file). I have configured it to do so in both ...
0
votes
1answer
162 views

Undeletable file [closed]

Folks, within Terminal, I am unable to chown, chmod, rm -Rf, or shred -vfuz to a file. I can however "echo xyz > fileName. I can create, delete or alter other files. My objective is to delete the ...
2
votes
3answers
2k views

How to shred a folder?

I want a command to shred completely the contents of a folder/directory (which may be inside folders/directories). Also please explain the command.
2
votes
1answer
260 views

delete files with particular character length and a extension in a directory using some command in terminal window

I would like to know what command must be executed in the terminal window which will enable us to delete files with a particular extension(say .c) in a particular directory whose name length is 6 ...
7
votes
3answers
1k views

How to “search and replace” many files?

I use the grep command to search for a string in many files. Is there something similar to "search and replace"?
6
votes
1answer
397 views

How can I make a script to place files older than each day before into their own folder?

I'm running an unnecessarily complex script which looks similar to this command: find /home/user/videos/*.avi -mtime +0 -exec mv -f {} "/home/nb/videos/1 day old" \; And then I run the same ...
-1
votes
2answers
4k views

I can't run .sh files [closed]

I'd like to play SuperTuxKart 0.7.3 RC 1 and I have to choose the file run_game.sh to do this. But I've got this screen each time : Translation : "Would you like to run "run_game.sh" or show its ...
0
votes
2answers
598 views

Photorec not seeing SD memory of camera

I am trying to recover pictures form a friends SD memory camera. When I connect the camera and run photorec it is not seeing the camera as a drive for me to recover files from. It only shows my hard ...
0
votes
2answers
317 views

How to transfer the whole contents of a folder (recursively) from one server to another?

I have a /home/jbruni folder in a VPS running Ubuntu Server 10.04 LTS (Lucid Lynx). I am about to turn this VPS off and move some things from it to a new VPS, also running the same Ubuntu version. ...
3
votes
0answers
2k views

Need a tool to compare the contents of two directories [duplicate]

Possible Duplicate: File and directory comparison tool? I'm looking for a tool(or anything that do the job ) that compare the contains of two folder and show the differences between them. ...
1
vote
1answer
293 views

How detect and run a shell script when any file or folder is being copied/moved to a directory?

How can I detect any file or folder is being copied/moved to a directory and then run a shell script? The files copied/moved would mostly have the same file names as the existing ones...
6
votes
3answers
419 views

Command line: create file with new filename if the filename already exists

I was wondering if it was possible have a command that creates one file, but every time the command is executed, it wouldn't overwrite the file created in the previous execution. For example: touch ...
1
vote
2answers
405 views

How do I find a string (and some lines before and after) in a huge file by terminal?

I want to display three or four lines before and after a certain string in a really huge file, which I can' topen with vi. How is this done? I tryed grep -i -n -r 'mysearchstring' but this only ...
5
votes
3answers
2k views

Use “locate” under some specific directory?

I was wondering how to restrict the search range of "locate" to some directory? For example, how to find files/directories with string "math" in their names under some directory "/home/tim/science/"? ...
5
votes
3answers
894 views

How do I Copy one file to many subfolders?

It sounds like a simple question but if it was I wouldn't be asking it. I can obviously do this by opening all the folders in nautilus and pasting each one individually but the computer is the robot ...
1
vote
2answers
88 views

Changing from one file to another

I'm told to go to /home/jbander/Downloads, so how do I do that, I assume you do it in terminal but what do you do next, I can get to home but that is it. How do I go from one directory or file or ...
7
votes
2answers
914 views

Find which files are read or written to

I want to see which files are read or written to. Is there any program or a command for that? I can remember I used this method to hunt down viruses and malware hiding locations when I used windows a ...
2
votes
4answers
2k views

Concatenating several .mp3 files into one .mp3

As it was suggested here I am using cat command to concatenate several .mp3 files into one .mp3 file. Imagine, I have following .mp3 files in the current folder: 001001.mp3 001002.mp3 001003.mp3 ...
6
votes
2answers
2k views

Split a large file into smaller files and then integrate them to get the original file

How do I split a 7GB (movie) file into smaller files of (say) 1GB, and then (in another Ubuntu computer) integrate them to get the original file (using just bash commands)?
10
votes
1answer
5k views

How can I email an attachment from the command line

Is it possible to email attachments from the command line? If possible, I'd like something as simple as: mail -a myfile.txt -t me@example.com -s "Here's my file"
4
votes
1answer
4k views

How to get the mime type of a file from the command line?

I'm trying to get the mime type of a file from the command line as a printed string (eg. application/vnd.oasis.opendocument.spreadsheet). I looked up how to do this and found the xdg-mime command. ...