0
votes
2answers
45 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 ...
-1
votes
2answers
29 views

No command is working, edited .bashrc file

I edited .bashrc file with PATH value, but when I open a new terminal after this, none of command is working. When i am opening a new terminal its giving : bash: export: `/usr/lib/java/jdk1.7.0_51': ...
0
votes
1answer
113 views

Cant create a file and write to it from a .sh script

I am trying to create a file and write to it using a .sh script but is not working(Nothing is being created, and I don't see any error). This is how that part of my script looks like: ...
2
votes
1answer
740 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?
4
votes
3answers
403 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: ...
2
votes
1answer
98 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 ...
0
votes
1answer
88 views

Moving bytes from one files to another

I have an empty file (only zeroes are in it) of size 9,0KB and I need to write another file (with size 1,1KB) to it, but the first file must not lose it's. So if the whole file is 00000000000000... ...
0
votes
3answers
95 views

Bash scripting issue for a bifurcation diagram data generation

I'm brand new to this forum (doesn't mean I didn't used it before) but today I've a very important question with wich I found no help on the web. I've a Bash script that doesn't work and I don't know ...
4
votes
2answers
1k views

“No such file” when running a 32-bit program on a 64-bit system

I downloaded a Chromium snapshot and unzipped it, like this: michael@ubuntu:/opt/chrome-linux$ ls chrome libffmpegsumo.so nacl_irt_x86_32.nexe chrome.1 ...
8
votes
3answers
13k 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 ...
0
votes
1answer
245 views

How to check for missing files in filesystem or directory with bash (after crash)?

After the system unmounted the root partition, I detected that some files are missing in the filesystem. wifi and the gwibber icons disappeared from the indicator applet I am trying to check if ...
3
votes
3answers
140 views

How to move only a specific amount of images from a folder

I have a folder that has 200.000 images. I want to do the following: Move an X amount of images (50 images, 100 images, 200 images) from that folder to Y folder. Each Y folder can be a number ...
5
votes
2answers
593 views

What is this file: /usr/bin/[?

The name of the file is '[' . When I open it up in vi it looks like it's a copy of 'test'. It's owned by root.
3
votes
1answer
231 views

How do I set ubuntu to compress a series of folders , deleting the original after its been compressed?

I need to setup some kind of script to go through a set of folders, compressing each one, and only leaving the compressed copy of each. How can I do that?
0
votes
1answer
235 views

BASH Downloading File

Now all I have problems with is the yes no statements. They aren't allowing input but look setup like the rest of them... mc_addplugin() { if pgrep -u $USERNAME -f $SERVICE > /dev/null ...
2
votes
1answer
389 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 ...
2
votes
2answers
1k views

copy only certain bytes of file?

How can I copy a file, starting at $N bytes and onward? I can use curl's -r option like this: $ curl -r 41663- http://server.com/file.ext to download from byte 41663 and onward, but how can I do this ...
2
votes
5answers
2k views

Need some help creating a script to rename text files and move them to a directory

I have recently managed to convince my mother to let me switch her PC to Ubuntu, and to make her transition easier I want to automate as many tasks as possible for her. I managed to do quite a bit, ...
1
vote
1answer
450 views

.bash_history and .cache

I have a user who's home directory is a Mercurial repository. Mercurial notified me that there were 2 new unversioned files in my repository. .bash_history and .cache/motd.legal-displayed. I assume ...
5
votes
4answers
3k 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 ...
14
votes
7answers
10k views

How to list all the files in a tree (a directory and its subdirs)?

For a task of mine I need to list all the files in a tree (a directory, all its subdirs, all subdirs of those, etc.). I'd prefer to see them in Nautilus or Krusader, but a command-line solution is ...
10
votes
2answers
4k 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)?