Tagged Questions

Questions about using the command-line interface (CLI).

learn more… | top users | synonyms (5)

1
vote
2answers
52 views

gibberish command not found on bash terminal startup

I have run across an issue that I just cannot seem to figure out. When I start my terminal in ubuntu (14.04) I get the message sdfsdfsdi: command not found As you can see it just looks like ...
0
votes
2answers
43 views

Command line file rename with date and time

I want to do a weather cam web page I have the command line to take the photo from the webcam then upload it via FTP but I want to do a backup of the photo with time and date as the file name so ...
0
votes
2answers
47 views

Install Sw in /usr/local but bash terminal doesn't see programs

I'm a newbie Ubuntu 14.04 User. I need Netbeans to develop software so I decided to install the 8.0.1 version. Since the pkg installer doesn't have the latest version, I downloaded the .sh file from ...
0
votes
1answer
26 views

inotifywait don't have access to folder

I got a problem with my folder rights/groups settings. One folder does have 755 and a group 'xyz'. I am in that group 'xyz' and I can actually see it's contents when I list it on terminal. By ...
6
votes
1answer
943 views

I accidentally removed my Trash and can longer put items into it, how can I get it back?

I did a stupid thing. I was having issues with certain files in my trash that my system was not allowing my to delete, meaning I could no longer empty my trash. These were not super important files, ...
1
vote
1answer
74 views

What are the different terminal emulators available in Ubuntu? [duplicate]

When I type echo $TERM on my terminal it shows me xterm. From there itself I believe there are more than one terminal in Ubuntu. Is it the name of the terminal that I am using? I have seen some ...
0
votes
1answer
44 views

What's the best way to copy `previously run command` to another terminal?

There are two terminal window - terminal A and terminal B. I typed a long long command to do something on A. then I want to execute the same command on B. But I would NOT like to type it again nor ...
0
votes
0answers
12 views

How do i give the anonymous pipe to a file root privileges [duplicate]

If i go the a root owned directory (let's say root) and type: sudo echo test > test i get the following error: bash: test: Permission denied So the pipe does not keep the same user as the ...
1
vote
2answers
206 views

Script doesn't work when it is run using '#!/bin/sh'

I have a script that use shebang : #!/bin/sh, but when I run it in my Ubuntu 14.04 terminal, it doesn't work and it says that some lines has unexpected operator. My friend in another computer could ...
0
votes
0answers
28 views

Unable to install gnome shell 3.10 on ubuntu gnome 14. 04 after accidental uninstall

I was running ubuntu 14.04 and genome shell verdion 3. 10. I was naive and installed ppa and system updates that upgraded the shell to 3. 12 and that's when things started falling apart (system ...
19
votes
2answers
2k views

Why I can find *main.o but cannot *.o?

This one is correct: $ find . -name *main.o ./main.o So, why I can't find *.o? $ find . -name *.o find: paths must precede expression: main.o Usage: find [-H] [-L] [-P] [-Olevel] [-D ...
1
vote
2answers
64 views

How to run commands from a bash file the way they run from terminal?

Sorry for my probably very naive question. What I mean is: how to create an executable script/bash file that would run more complex commands, commands which must normally be put in a terminal? ...
4
votes
1answer
47 views

What are the allowed characters for a password?

I'm asking for the type of characters supported by user passwords (the passwd command precisely) Are spaces allowed? NULL characters (\0)? a subset of ASCII or more? If spaces are allowed do I need ...
0
votes
1answer
39 views

Configure GSM connection using shell (nmcli)

I have a system without X display and I want to use nmcli to configure my usb cell modem. I can get the modem working using Ubuntu Desktops GSM-Wizard (X/GUI). But what is the console alternative on ...
0
votes
1answer
40 views

TCP Connections [closed]

I am reading the article here Get Detailed Information About Particular IP And, I am very concerned about the output from the results. When I entered the command from that site: sudo netstat -nat | ...
0
votes
2answers
36 views

chmod command problem Xubuntu [duplicate]

Hello I'm trying to make a jar executable using chmod a+x jarname.jar, no errors. But when I try to execute it it's not executable. .. help plz, I'm on Xubuntu, trying to execute the jausing DOUBLE ...
1
vote
1answer
22 views

apt-get error with libmza

I am getting the following error when I try to update something apt-get: /usr/local/lib/liblzma.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12) ...
0
votes
0answers
20 views

How to create an login page for ubuntu before GRUB [duplicate]

I want to create an login page before the execution of GRUB so that we can make our pc secure
7
votes
5answers
555 views

Run program from anywhere without changing directory

I wish to create an alias, which runs program x, without changing the current directory I am in. What I have now is: alias x = "cd /home/path_to_x && ./x" This works, but changes my ...
2
votes
1answer
48 views

“Run In Terminal” message doesn't appear

I'm trying to execute a .sh file, but its opening in gedit. I permitted it to be "executed as program", but it's still not working. I'm on a machine running Ubuntu 14.04LTS.
2
votes
1answer
53 views

jumping cursor when using python interpreter in terminal

When I am typing in a long command while using the python interpreter in terminal, the cursor will suddenly jump all the way back to the beginning of the line that was just typed and start ...
2
votes
1answer
134 views

does << (input redirection in append mode ) works only for newline?

while reading about file creation in linux I got : Another way to create a file at the terminal is cat > <filename> << EOF. A new file is created and you can type the required ...
-1
votes
2answers
37 views

How to add running program icon to left-side bar? [duplicate]

As in question, how can we assign an icon here? Regards
-3
votes
2answers
74 views

What is/are the advantage(s) of running applications in backgound?

I really don't know what are the advantage of running applications in background. Why we run applications in background and when should I decide to run an application in background and why? After all ...
0
votes
1answer
33 views

unable to execute .sh scripts - only on one pc

This is an unusual problem for me - what would cause one pc to suddenly be unable to execute an install.sh script, yet two other pcs with the same OS have no problem doing so? I get various errors ...
0
votes
1answer
37 views

Create a user for samba only (CLI)

Exact same question as this one, but using CLI instead of GUI. I'd like to allow login access to a shared SMB directory, but the users get no other access to the server.
1
vote
1answer
26 views

Nothing after logging into account

I tried to install java and few other upgrades, so I found this website: http://itsfoss.com/things-to-do-after-installing-ubuntu-14-04/ and did basically everything. After reboot screen with the ...
0
votes
0answers
54 views

Cannot find google chrome terminal command

I'm connecting to my machine at the university using the ssh - X command. I want to launch google chrome from my terminal in order to get access to some website only available through my university's ...
0
votes
3answers
161 views

Not a Ubuntu question, but a Linux query in general: MS-DOS like OS for Linux? [closed]

I'm looking for a Linux OS that runs fully through the terminal, kind of like MS-DOS. I'm using a 100 Mb device that I intend to use for only basic functions like transfer files from various drives ...
0
votes
0answers
19 views

How can I set raise-window-button from the command line?

I have a script with commands such as: gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-2 "['<Alt>F2']" which I use to reset my gnome settings when an update decides my ...
0
votes
1answer
28 views

Working with plain vi not vim

I was trying to learn working with vi, the plain 'vi' that ships with most of the operating system, but that 'vi' seems to be missing lot of features. When I tried to excute ":ls", it gave me error ...
2
votes
2answers
53 views

uniq command not working properly?

So I'm checking the md5 hash of my files with this as my output: 657cf4512a77bf47c39a0482be8e41e0 ./dupes2.txt 657cf4512a77bf47c39a0482be8e41e0 ./dupes.txt 8d60a927ce0f411ec94ac26a4785f749 ...
1
vote
1answer
42 views

Commands not executing in shell script run by udev

I'm having trouble using udev to run a shell script that backs up my hard drives to an external drive whenever the external drive is connected via USB. Everything works except the actual call to ...
1
vote
2answers
54 views

Lame - How to re-encode all 320kbps mp3 to 192kbps mp3

As per title. I have lots of MP3s in 320kbps format that I need to convert to 192kbps. Currently I'm using lame --mp3input -b 192 which creates a file of the same name but with an extra .mp3 ...
0
votes
0answers
21 views

SSHFS tutorial clarification in help.ubuntu.com/community/SSHFS

https://help.ubuntu.com/community/SSHFS describes how to use SSHFS. The description is somewhat ambiguous. I have tried several combinations of the permissions and ownerships of the directories ...
1
vote
2answers
35 views

How can I compress multiple pairs of files into separate archives by name?

I've got a couple dozen sets of Audacity project folders and .aup project files whose names are very close, i.e. 10-13-14-data and 10-13-14.aup. I'd like to compress all of these files automatically ...
1
vote
1answer
81 views

How to suspend from the command line in gnome 3.14

I'm aware of this post: How can I suspend/hibernate from command line? however, the recommended method using dbus doesn't work with Gnome Shell 3.14.0. What is the now recommended approach for ...
0
votes
0answers
83 views

sublime text 2 via gnome-Terminal GLib-CRITICAL

Whenever I run sublime text 2 from the command line (via the 'subl' shortcut command) I receive the following error (sublime_text:4679): GLib-CRITICAL **: Source ID 15745 was not found when ...
1
vote
1answer
42 views

Terminal Command to Zoom

I've been looking for this for a while, and I can't find it anywhere. I need to be able to zoom (equivalent of ctrl + shift + '+') via the terminal. I've tried xdotool, but do not know how to get it ...
1
vote
2answers
67 views

“mv” versus “cp” in a bash script [closed]

I am attempting to make a script that will be able to load up some settings and files to a board. Basically I will plus a flash drive into the board click on the script. The script will then ...
3
votes
1answer
78 views

Find a file which contains a string and delete it in Ubuntu

My CMS is full of SPAM scripts and they are almost in every folder. I figured out, that I can find those scripts by using this find/grep command: sudo find . -type f \( -name '*.php' -or -name ...
0
votes
1answer
29 views

Ubuntu bash if lessthan else condition returning error [: -lt: argument expected

I am doing the following script to know if profit or loss from entered selling price and cost price as; echo enter selling price read sprice echo enter costprice read cprice if [ $sprice -lt $cp ] ...
1
vote
1answer
39 views

Run a file like I could in command prompt

How can I run a file like I could in command prompt? Like say I wanna run this file C:/Music/BobDylan/MrTambourineManOriginal.mp3 I'd first navigate using cd to the Bob Dylan folder, and then ...
0
votes
1answer
14 views

Package x11 was not found in search path?

Can someone help me fix this issue? When I try to use "make" it gives me this error. I have searched online for solutions, but none is helping at all as well.
1
vote
1answer
96 views

What environment does xargs pass to grep?

I am trying to search for two strings in a file. This is the command that I am using grep -l -r ads2gas | xargs grep vp8 For some reasdon the second grep is not working correctly. I am getting "no ...
1
vote
3answers
72 views

Sort videos by bitrate

I have a folder with some 300 videos. I want to sort these by their video bitrate. I use a command 'mediainfo' to obtain the bitrate info of a file . Is it possible to write a script (possibly in ...
0
votes
0answers
29 views

Install programs from seperate terminals?

I could install programs simultaneously from separate terminals in a Ubuntu deriative. But it is not possible in Ubuntu. While one program is being installed, another refuses to proceed for ...
0
votes
0answers
23 views

Can only echo very limited numbers to USB companion files

I want to echo number 7 to the file /sys/bus/usb/devices/usb2/../companion, but fails. But if I echo number 1 or 2 to this same file, it works well. Any idea on that? nxr@nxr-desktop:~$ sudo -s ...
0
votes
2answers
50 views

Copying files from DVD to hard disc?

I am trying to copy the contents of a DVD to a folder (named ANIL) in Hard Disk by using terminal. Would somebody be able to provide me an example of the command line syntax required to achieve ...
-1
votes
1answer
39 views

Copying a file from a DVD to Hard Disk [duplicate]

How do I copy a file/folder from a DVD to my hard drive using the Terminal?