Bash is the shell used in Ubuntu's command-line interface.

learn more… | top users | synonyms (1)

1
vote
1answer
234 views

Error Password: chsh: PAM: Authentication failure when try to install Oh my zsh

I try to install Oh my zsh. After install zsh (sudo apt-get update && sudo apt-get install -y zsh) Then I install sudo apt-get install -y curl then install git. the problems occurs ...
2
votes
1answer
41 views

Need to exec $SHELL on new terminal for settings to work

Unsure what is interfering with my shell, on every new shell I need to exec $SHELL to get correct settings to take. I am getting this prompt by default sayth@sayth-TravelMate-5740G:~$ and after ...
3
votes
2answers
203 views

Equivalent to command prompt's “tree” command? [duplicate]

Back in my (sucky) Windows days, I used the tree command to view the file hierarchy in a pretty display. I am aware of the find command, but to actually process any data in my clogged 241,416 ...
1
vote
4answers
66 views

Change directory structure from /YEAR/MONTH/DAY/ to /YEAR-MONTH-DAY

I need to change my directory structure for my photos from /YEAR/MONTH/DAY/ to /YEAR-MONTH-DAY I know this can sort of be done with exiftool, but it will only work on files containing EXIF-tags, and ...
0
votes
2answers
73 views

Speed up script

Which shell command is the fastest way to parse through millions of lines of text. Currently I'm using GREP in my script but it takes hours upon hours to finish. Sample Input: May 1 2014 00:00:00 ...
0
votes
0answers
18 views

get cpu usage of system users

Working with monit I need create an alert that get cpu usage of system users, so: top -b -n 1 -u user1 | awk 'NR>7 { sum += $9; } END { print sum; }' seems a good solution but I'm not sure about ...
0
votes
0answers
30 views

getting error in opening py file [duplicate]

I'm installing a software in Ubuntu 12.04 and got the following error: http://paste.ubuntu.com/7638369/ server@ubuntu:~/Desktop/revkit-1.3$ ./tools/gui/gui.py Traceback (most recent call last): ...
2
votes
1answer
17 views

Bash command completion of command parameters

In Fedora 21, we can type: apt-get ins hit tab, and it will complete the word install We are using an instance of Ubuntu 10.04 on a cloud platform, and tab completion works for files, but does not ...
0
votes
0answers
51 views

Grub rescue error: file not found after fsck and a few updates

I am new to Ubuntu. I was using Ubuntu 12.04 LTS. I ran a sudo fsck on my terminal and went on pressing y for a long time at the prompts that appeared. When it seemed to continue for long, I did a ...
1
vote
2answers
45 views

View thousands of pdf files one after another from a list

I have taken up a task of manually generating Library essential data from huge pdf library; what I want is: use a script with file names, to open a pdf file instance, review it and after I close ...
0
votes
0answers
365 views

GNU GRUB version 2.02 beta 2-9

I attempted to load Windows 8 and Ubuntu alongside each other and it was working well until my Ubuntu installation completed and I restarted the computer. Now I can't get past this error: ⠀Minimal ...
0
votes
0answers
24 views

Terminal exits program before able to accept Hashcat EULA

I'm trying to play around with hashcat,just using the examples included with the program, but before the command can run it requires me to accept the EULA. Instead of me being able to enter 'YES', the ...
1
vote
1answer
27 views

Translating to Bash Command

So for a project for school I had to install the DPJ extension to the Java language. I downloaded and unpacked a tarball containing the files, and then was told to run the following: setenv DPJ_ROOT ...
3
votes
5answers
249 views

Removing specific part of filename (what's after the second dash) for all files in a folder

I use the command line utility youtube-dl to download videos from YouTube and make mp3s from them with avconv. I'm doing this under Ubuntu 14.04 and very happy with it. The utility downloads the ...
4
votes
1answer
227 views

Why my 'at' clause command execute the shell immediately and ignored the time limit?

I wrote a shell named t.sh It's content is: touch 88888 The command I'm using is sh t.sh | at 03:13Jun15 After I execute this command, I got this show on my screen: warning: commands will be ...
-1
votes
1answer
32 views

Why no shell expansion?

Why might bash not expand *? I want to remove all the sites-* files except for the last one, but I would like to test the expansion before running the command and rm lacks a --dry-run option: $ ls ...
0
votes
0answers
13 views

Automatically run a command after unlocking screen/wake up? [duplicate]

Is there an easy way to make Ubuntu run a specified command each time I unlock the screen (after an overlay with password prompt dissapears)?
0
votes
3answers
103 views

Run script full screen in terminal

How do I get a bash script to run in full screen when it's executed or how can I change the terminal size if I can't make it full screen?
2
votes
0answers
36 views

Script Issue (Incrementation) [closed]

I'm writing a script in bash. My output down below is wrong. The test data I'm pulling from makes it so that all connections allowed and denied should be in time "00" yet for every day I crawl through ...
0
votes
1answer
32 views

How do I enable automatic history expansion for commands using 'magic space'?

I read on a blog somewhere about the possibility to use automatic history expansion before actually executing a command or even pressing the enter key in the command line. It involves the ...
0
votes
3answers
56 views

Permission denied error while creating file by using script file

I have created a script file called black_list.sh. #!/bin/bash default_card=`head -1 /proc/asound/modules` echo $default_card if [ ! -e /etc/modprobe.d/sound.blacklist.conf ] && [[ ...
1
vote
1answer
101 views

text is not appearing at cursor in bash, can I reset it somehow?

This happens sometimes if the VM bumps up against upper limits of memory and has to hit swap heavily for extended periods (a few minutes or more). When this happens and I type asdf at the prompt it ...
3
votes
2answers
84 views

Why does a bash-zenity script has that title on Unity Panel and that icon on Unity Launcher?

I have this small bash script which helps use Infinality font rendering options via a more user-friendly Zenity window: http://gnomefiles.org/content/show.php/Infinality+Style+Changer?content=161984 ...
0
votes
0answers
113 views

sh: 0: Can't open HoNClient-3.4.3.sh

I've been trying to install HoN on my laptop. It's running 32-bit Linux Mint 15. The problem I've run into is this: When I try to run the client in the terminal, using the command: sudo sh ...
0
votes
1answer
88 views

Cannot execute binary file

I am new to Ubuntu and I'm trying to install Popcorn Time. I downloaded 32 bit version and tried to install it but that's where the problem started showing. I double clicked the executable file and ...
1
vote
3answers
52 views

Help creating a messagebox notification with yes/no options before an application runs

I started using Ubuntu alongside Windows about 2 months ago. I've slowly been adding all of the programs that I use regularly to Ubuntu, so that I will eventually be able to do everything in Ubuntu ...
0
votes
1answer
91 views

FFMpeg permission denied error

I installed ffmpeg into /root/bin I followed this guide: https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu I now want a non admin to access it. I created a symbolic link in /usr/local/bin now if ...
1
vote
2answers
115 views

Namenode formatting in hadoop installation

I have given the path for both the configuration files directory and the .sh files directory. I managed to do the configurations with this path: ...
0
votes
2answers
38 views

Is it safe to alias rm to safe-rm?

We are happy to use safe-rm as a replacement to rm, but is it considered safe to alias it? e.g. alias rm='safe-rm'
0
votes
1answer
35 views

How to create a new user defined command to kill processes using process name?

Suppose I wanted to kill firefox , I just write pidof fi(press tab)refox (appears on its own) , then I write ' kill 'id given by pidof' ' on terminal. I know that I can write 'kill `pidof firefox` ' ...
1
vote
1answer
61 views

bash script move file to folders based in name

I hope you can help me... I made a perl and bash script to make a backup of my firewalls and tranfers via tftp #!/bin/sh perl /deploy/scripts/backups/10.160.23.1.pl > /dev/null 2>&1 ...
1
vote
1answer
37 views

-ln links to wrong file

I've just installed matlab and want to be able to call it from the terminal. It works fine when I explicitly call it from its directory. I cd to /usr/local/bin and type sudo ln -s ...
3
votes
1answer
83 views

Bash script runs fine, but not in cron

I have a script that's supposed to record a shoutcast stream for an hour, convert it to mp3, and then save it. The script runs correctly when I run it from the terminal, but I can't seem to get it to ...
-1
votes
1answer
132 views

alias of nodejs as node on 14.04

i installed nodejs with apt-get on 14.04 When i do nodejs -v v0.10.25 and when i do node -v node : command not found. So i want to make alias of nodejs as node So i inserted a line in ...
0
votes
2answers
66 views

Cron doesn't execute one of the scheduled jobs

I'm using a lubuntu desktop, distribution Ubuntu 13.10, i686. This is my problem: in the job list scheduled by cron a job hasn't effect, but in /var/log/syslog its execution is traced. This is the ...
1
vote
1answer
26 views

Print out the amount of times 2 words appear in the syslog. But also have it tell me how many times for each hour

So I'm trying to create a bash script that looks for two words in my syslog file. Then I want the script to print out how many times those two words have appeared. Also I want it to print it out for ...
1
vote
1answer
111 views

write a bash which open firefox on every ten minute

Is it possible to write an script which do a specific command every ten minute? I do not know if this is a loop? For example Every ten minute delete a file name foo on the home directory? or every ...
1
vote
3answers
51 views

build command by concatenating string in bash

I have a bash script that builds a command-line in a string based on some parameters before executing it in one go. The parts that are concatenated to the command string are supposed to be separated ...
0
votes
1answer
16 views

How to create a script to launch several emulated ROM inside a folder

I would like to create a script to run simultaneously all the N64 Roms that I put inside a folder, reading the names from a text file. Since now I did a script like this: cat ./listN64_full.txt | ...
0
votes
1answer
50 views

What does the 'sudo -s' command do, and how is it used in this example?

I have the following doubt. In a tutorial related to a software installation that I am following say that I have to execute the following commands (I am doing it into an ssh shell, so this list of ...
0
votes
3answers
54 views

alias/function with command line arguments

I'm tired of typing manage.py startserver 10.211.55.4:4000, so decided to make an alias for that. Only thing is: the port sometime changes. So I did this in bash profile: function runserver() { ...
0
votes
2answers
55 views

Something is wrong with my bash prompt?

So when I type with my new bash prompt it goes on for a while, but if the command gets to long it loops around itself and writes over bash prompt. Here is my PS1 : PS1='\e[0;34m\A\e[m | ...
0
votes
1answer
58 views

Help writing server script to ban IP's from a list

I have a VPS that I use as an openvpn and web server. For some reason, my apache log files are filled with thousands of these hack attempts: "POST /xmlrpc.php HTTP/1.0" 404 395 These attack attempts ...
0
votes
4answers
120 views

Creating A Simple Bash Script With Multiple Commands [duplicate]

Trying to create a bash script that opens gnome-terminal, and then runs ls to display the contents of a directory, but it just opens gnome-terminal. I will be creating some other scripts that also use ...
0
votes
2answers
41 views

Redirecting output to std output or /dev/null depending on optional parameter

I have a script where you can run it just like this ./myscript and the output of some commands called inside the script are hidden, just like this: if mvn tomcat:deploy &> /dev/null; then ...
1
vote
1answer
34 views

Changing current directory to directory that have identifier as the substring

My terminal is currently in the home directory, and the home directory contains a directory which have "round" as the substring. Is there any way to directly change to that directory without typing ...
2
votes
1answer
47 views

What do the '?', '.' and '+' symbols mean when I run 'who -aH'?

What does the plus sign (+), question mark (?) and period (.) mean in the idle column when I run who -aH? I tried Google, but the results are all about regular expression and wildcards. EDIT: I ...
5
votes
2answers
183 views

Hiding output of a command

I have a script where it checks whether a package is installed or not and whether the port 8080 is being used by a particular process or not. I am not experienced at all with bash, so I did something ...
1
vote
2answers
36 views

Running shellscript with cronjob is making problems, executing manually not. Ideas?

I made a shell script called /home/root/cron_grads.sh (chmodded 755) on my server. In this directory are more grads-scripts like 500hPa_p0.gs (644). My main script creates a temporary file ...
1
vote
2answers
34 views

how can i find all files that contain embedded crc32's

how can I find all files that contain embedded crc32's e.g. Mydocument190_[F285E17D].pdf using the find command to clarify the crc32's are always within brackets [F285E17D] and the file names may ...