2
votes
2answers
82 views

Files Shown in Terminal not Show on Desktop

I have an issue where I am creating .cap files with aircrack-ng and am saving them to the desktop, but I can't see them. When I use the ls command in the terminal they show up, but just not on the ...
2
votes
1answer
47 views

How to find programs that are appropriate to open a file?

Is there any command line command or any program which tells you or suggests you which programs you have installed on your system in order to run your passed file. For example when I write command ...
-3
votes
1answer
45 views

How to copy a file's content to an other without erasing the destination file's content? [duplicate]

I run cat source.txt > destination.txt. All the content of the destination file is overriden. How can I copy a file's content to an other file without erasing the destination file' content ?
-4
votes
2answers
113 views

How to save command line output to text file? [duplicate]

There has been several situations where I needed to save the output of a given command line directly to a text file. Is there a way to save the output of any command line I run on Terminal into a text ...
0
votes
1answer
69 views

Why won't the terminal change to my shared folders directory? [duplicate]

I have tried cd Desktop/Shared Parallels Folders/Home/Downloads, but linux does not recognise these directories, No such Directory etc. Why?
0
votes
2answers
54 views

How to a show the disc usage by directory in my home directory using the Terminal?

Could someone let me know which tool I should use? I'm trying to run this on an Ubuntu Server VM. So I believe I need a tool such as discus.
1
vote
2answers
168 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 ...
10
votes
3answers
659 views

How to find the difference between a script file and a binary file?

$ ls -l /usr/bin total 200732 -rwxr-xr-x 1 root root 156344 Oct 4 2013 adb -rwxr-xr-x 1 root root 6123 Oct 8 2013 add-apt-repository list goes long --------- In the above adb is ...
0
votes
1answer
67 views

Creating a file in terminal

I am new to ubuntu and I am trying to create a file to fix a suspend problem I have with my system. I have found the answer here as follows: Put attached script into dir /etc/pm/sleep.d e.g. with ...
0
votes
2answers
72 views

Help me fix my improper removal of files please

Upon opening terminal I get a notification: bash: /home/kylekroeck/Public/ccp4-6.4.0/bin/ccp4.setup-sh: No such file or directory My /.bashrc file: # ~/.bashrc: executed by bash(1) for non-login ...
2
votes
1answer
502 views

Recursively copy (and rename) files to their own same directory with another name

This Q and A will cover a very specific yet common case: given many files with the same or similar name each in its own directory, create a copy of each of them in their original directory but with ...
1
vote
1answer
59 views

How to count the total number of the opened files by the users and processes on my machine

I used this command to display a list of all opened files of the current user on my machine : lsof -Fn -u teeba| sort | uniq | grep /home The result was : I want to know the total number of the ...
8
votes
2answers
577 views

How can I remove a file that looks like a flag? [duplicate]

While using grep with -oG flag I accidentally create a file named -v. -rw-rw-r-- 1 username username 334 Feb 10 14:29 -v Now I cannot figure out how to get rid of it. I've tried: rm -v rm "-v" ...
1
vote
2answers
65 views

Command to list the largest 3 directories/files in my home

How can I list the largest 3 directories/files which are directly (not recursive) in my home directory using a command?
3
votes
2answers
2k views

Show recent modified/created files using Terminal

Is there any command to display the recently modified/created files? Which one...?
1
vote
3answers
72 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 ...
2
votes
4answers
109 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
173 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?
1
vote
2answers
2k views

Can't delete file (folder?)

I run ubuntu as a dual boot along with Windows and last time I was on ubuntu, I created a folder (Java) in the following directory. This time, when I logged on, I was unable to navigate into the ...
0
votes
1answer
31 views

File Recreation [closed]

There is a game that a play and as a result of playing it there are these files that appear in my terminal. So what I did was rename those files and move them into one directory because when they get ...
3
votes
1answer
107 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
1answer
238 views

Open files with vim in terminal

Is there any way to open file with vim in the terminal without typing file name, but for example then I see in the directory my file, go with arrow keys or something like that? I think I saw one of ...
39
votes
6answers
21k views

How can I recursively delete all files of a specific extension in the current directory?

How do I safely delete all files with a specific extension (e.g. .bak) from current directory and all subfolders using one command-line? Simply, I'm afraid to use rm since I used it wrong once and now ...
0
votes
2answers
273 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
5answers
174 views

Hide multiple files at once with shell script

I'm trying to hide some files with some command, I tried the rm command, but it did not work and also tried to rename but did not understand how it works. The files that I want to hide have spaces in ...
1
vote
2answers
675 views

How exclude folders for remove when using ( rm -rf *) on the parent dir

i run the following command line to remove all files/dirs in directory : cd /home/abdennour/android/ rm -rf * the architecture of this directory is as following : ...
3
votes
3answers
335 views

How to move specific files while preserving their directory structure

I have large directory with lots of files and directories on a remote Windows system where I only have FTP access. I had to do some modifications in some of the files, so I downloaded the whole ...
0
votes
1answer
538 views

How can I delete all .LNK files on my Ubuntu machine?

For some reason, when I launch Office 2010 using WINE, it creates a lnk file in the Recent directory of my Windows Profile. I just checked the folder and there were ~2000 LNK files. How would I ...
3
votes
1answer
4k views

The fastest way to create a file from a terminal

What is the simplest way to create a file using a command-line? Usually I use: touch filename But is this the simplest/fastest way?
1
vote
4answers
66 views

Terminal shows more files on desktop than there are actually

I noticed this thing today and found it to be awkward. My desktop has the following files : But upon running ls in the terminal i got the following output: a.out htc_pass.sh ...
1
vote
2answers
16k views

Copying multiple specific files from one folder to another

I have a large folder of pictures (thousands), and I have a long list of files, by exact file name, that I need to copy to another folder. I want to know if there is a way I can select several ...
4
votes
3answers
574 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
3answers
2k views

How to open a Ruby file in terminal?

I have a ruby file saved on my desktop as test.rb. How can I open it with terminal? I have already tried to use /home/desktop/test.rb and what I get in response is bash: /home/desktop/test.rb: No ...
2
votes
2answers
300 views

List files having more than 100 lines in a directory and in all it's sub directory

How can I list files having more than 100 lines in a directory and in all its sub directories? An example of such a terminal command will be very helpful. Is there a tool to count the line numbers of ...
3
votes
2answers
1k views

How to pass text file contents as argument to console application?

What is the command line to run a console application with input argument fed from text file? text_file: This is a simple text file with characters and other symbols including tabs and new lines ...
2
votes
1answer
116 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 ...
5
votes
1answer
973 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
85 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 ...
40
votes
16answers
79k 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
4answers
929 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
732 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
25 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 ...
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 ...
1
vote
1answer
114 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
82 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.
2
votes
2answers
84 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 ...
1
vote
1answer
393 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 ...
8
votes
3answers
17k views

How do I create a script file for terminal commands?

In Windows I can write a file containing commands for cmd (usually .cmd or .bat files). When I click on those files it will open cmd.exe and run them commands the file contains. How would I do this ...
25
votes
5answers
8k 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
205 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 ...