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

learn more… | top users | synonyms (6)

0
votes
2answers
52 views

Searching for specific magic byte in an ocean of files

I want to know how I can search for a specific file type: I have entered a SSH server and I am trying to search for a .jpg file, but the owner of the server (my teacher) has removed all extensions. I ...
0
votes
0answers
8 views

How to use IWCONFIG to set my wireless power management timeout/profile

Can I use iwconfig to set my wireless power management timeout? I don't know what can be done, but I read the man page on the command line and it has some configurations for power management. What I ...
0
votes
0answers
10 views

command-line: line 0: Bad configuration option: PermitLocalCommand

I am getting error in Ubuntu command-line: line 0: Bad configuration option: PermitLocalCommand while try to copy file from one system to other. I am Using command : scp testfile.txt ...
0
votes
1answer
11 views

Acidentally used gzip -r and now individual files in many sublevels are zipped [duplicate]

I tried to use the gzip command on my public_html folder, and I've landed in a pretty big mess. Exact command I used: gzip -r /home/account/www/ Now, in many sub-levels I have individually ...
0
votes
1answer
19 views

How to change command line prompt name and add path of current directory after name?

Currently my command line prompt looks like this nuve@nuve-Inspiron-5547:~$ but i want to change it Azer's Terminal:"Path of current directory" . How can I do this? I need exact code line to add to ...
-1
votes
1answer
30 views

What's wrong with tee command?

I am running the following python script piped to tee command #!/usr/bin/python from sys import exit,exc_info from time import sleep try: print "hello" #raise KeyboardInterrupt ...
0
votes
1answer
22 views

Mysql installation failed

Mysql server is failed to start suddenly, so I just uninstalled it and tried to reinstall again. But, While installing the mysql server using #apt-get install mysql-server-5.6 I got the following ...
0
votes
0answers
37 views

Is it safe to change ownership of all files in “/root” folder to “root:root” recursively?

I mistakenly ran chown -R buttle:butkus *;chown -R buttle:butkus .* in the /root directory. I killed the command but it definitely changed a lot of files' ownership before I killed it. So a lot of ...
0
votes
2answers
13 views

Syncing Data and Coordinate Scripts Across Machines

I have Ubuntu installed on several laptops and I was wondering if it was possible to synchronize the data on them (from one device) AND also run one script/command on all of them from one device.
0
votes
0answers
19 views

ls -l Commands Gives ? for Permissions

This is a movie file, .avi that is on an external hard drive. It shows up purple when I do: ls -l For some reason I'm not able to see it using a GUI (not admin/sudo). But it will show up using ls ...
0
votes
1answer
16 views

Where can I find the tutorials about ubuntu command lines? [duplicate]

I want to learn more about using command lines to be more productive for example I want to open my files, edit and save it, search and other cool stuffs that we can do from Command lines.
0
votes
0answers
18 views

Executing .sh file for Vassal engine returns “java: file not found”

I just installed Ubuntu, after having used Linux Mint for a year or two. I was hoping to install and use the Vassal strategy game engine (from vassal.org), which worked fine in Mint LMDE. However, ...
0
votes
0answers
12 views

Mount virtualbox shared folder from .desktop file in ubuntu guest on OS X host

Trying to make mounting the shared folder done through a clickable icon on the desktop. I can run this command from the terminal and it works fine and mounts the folder: sudo mount -t vboxsf -o ...
0
votes
0answers
16 views

Concatenate AVI videos with same format on the command line [duplicate]

I want to create a script to concatenate AVI videos, all with exactly the same format, frame rate and resolution. I don't need any editing, only concatenate all the videos in each of the folders. The ...
0
votes
1answer
13 views

Issue when installing anything from terminal [duplicate]

I'm having trouble installing anything through the terminal, I'm using Ubuntu GNOME 15.10. After typing in my password I get this message E: Could not get lock /var/lib/dpkg/lock - open (11: ...
0
votes
1answer
38 views

Exclude some of the files with rsync

I want to do rsync from the folder e.g. /user/home/ford , and I have a directory named xthp inside ford; so now i want to exclude few of the files from the directory xthp. I am using the command ...
-1
votes
0answers
24 views

How to run different shell script in different terminal?

#!/bin/bash gnome-terminal --working-directory /home/path1/output/ -x bash --rcfile .env/bin/activate sh build.sh gnome-terminal --working-directory /home/path2/output/ -x bash --rcfile ...
1
vote
0answers
13 views

Increase the root partition size on Ubuntu Server 14.04

How can I increase the root partition size of a virtualized Ubuntu Server 14.04 using the CLI?
0
votes
0answers
18 views

Sudo apt-get update, strange many errors [duplicate]

While I'm doing the classic sudo apt-get update I obtain these strange errors. W: Failed to fetch http://it.archive.ubuntu.com/ubuntu/dists/trusty-updates/main/source/Sources Hash Sum mismatch W: ...
14
votes
5answers
3k views

Is there a way to create multiple directories at once with mkdir?

If I wanted to create multiple directories (on the same level) and then feed it a comma seperated list of directory names (or something to that effect)?
0
votes
1answer
11 views

Problem after removal of MongoDB

I installed mongoDB using this instruction manual, but was unable to start it, so I decided to remove the Database by following same instruction set. Since the removal I don't get default options when ...
0
votes
0answers
13 views

Learn Ubuntu shell language [duplicate]

What's the best way to learn it and understand the commands? I am not a total newbie: when it comes to code I can do HTML, vas and Javascript alright. For school I made a text game in Visual Basic: I ...
2
votes
2answers
133 views

Why do scripts ran via “sh *.sh” function differently than “./*.sh”? [duplicate]

I'm using Ubuntu 15.10. I have noticed a weird problem. When running a rsync command embedded in a shell script (as root) with --exclude={} options, rsync works and excludes paths as it's supposed ...
0
votes
0answers
31 views

I cant get the cp command to work

I the terminal if I issue the cp command, it states "The program 'cp' is currently not installed. You can install it by typing: apt-get install coreutils" but when I try to install it, i get the ...
-1
votes
3answers
40 views

Extract info from file

Is there an efficient way to parse a file like: 2 41620 . T G 100 PASS ...
0
votes
1answer
16 views

OpenCV is not installing

I have recently installing OpenCV 3.0.0 with the help of script "install-opencv.sh" I have used command $ sudo bash install-opencv.sh error are below wget: unable to resolve host address ...
0
votes
1answer
13 views

Problem in renaming the partition and opening a file through terminal

I installed Lubunntu 15.10 on my pc and my ntfs partition which I didn't touched at all named in a very weird way I want to rename it so used the Disks to rename after reading this but it shows this ...
0
votes
2answers
30 views

How i can run java from terminal? [on hold]

I've copy the java from downloads folder to the bin folder and I've tried so many ways to set it. So can just type java in terminal. But it always not working. Please help me.
0
votes
1answer
48 views

Ho can I make sure a program is killed when VPN is running?

There is a program that I need to not have running whenever my VPN is running. I don't want to resort to closing it manually every time, because I might forget sometime. I would like to guarantee ...
-1
votes
0answers
17 views

To write the path of a folder with space in its name I have used the following syntax [on hold]

suiit@suiit:~/Desktop$ cd /opt suiit@suiit:/opt$ cd "Assignment 2" bash: cd: Assignment 2: No such file or directory suiit@suiit:/opt$ Why is the above method not working?
1
vote
2answers
62 views

text between 2 words with some lines before patterns

how can I find lines between two words with 3 lines before START_WORD in sed or grep or ... for example output from a command is: my name is Mansour and I confuse to use sed or grep for piping my ...
1
vote
0answers
10 views

Shell script to create multiple accounts? [duplicate]

I'm looking for some help with a school project which needs a shell script to create 10 accounts (5 teaches and 5 students into different groups) along with respected passwords. I'm a true ubuntu noob ...
1
vote
0answers
15 views

managing open LDAP server users

When I'm trying to add a group I'm having errors : $ sudo ldapaddgroup ldsales Error adding group ldsales to LDAP I don't know why I have an error. My userldif: dn: ...
0
votes
0answers
34 views

Spelling mistake in ~/.bashrc

I am a newbie and I wanted actually install MeanJS but then I made the following mistake. I wanted to paste this in the terminal: echo 'export PATH=$HOME/.node/bin:$PATH' >> ~/.bashrc But ...
1
vote
2answers
50 views

Problem with using wildcards when I do CP command in Terminal

I am new and try to learning Terminal Command. Today I faced some problem with cp wildcard command option. I wrote in Terminal this command cp Downloads/[:alnum:] test/ Here, Downloads is the ...
0
votes
1answer
30 views

How do I write an output of one command into a file? [duplicate]

Let's say we got a content of the following command in bash, which consists of several rows, and just one column: tacmd listsystems | grep -i $i | awk '{print $1}' This content is a list of offline ...
0
votes
0answers
23 views

how do I block other computers in LAN like 'net cut' in windows

i used 'net cut' in school to block other computers in LAN. How can I do the same in Ubuntu? I am looking for a program or terminal commands.
-1
votes
0answers
9 views

How to scroll, copy and paste in terminal using Bitnami Ubuntu VM [on hold]

I just install Bitnami RubyStack VM (non GUI). So first time using Ubuntu without GUI. So am missing lot of stuff like the mouse, scrolling through the terminal, copying or pasting text from the host ...
-2
votes
1answer
16 views

Mac Terminal - how to rename directory [on hold]

Misspelled last night and need to rename a drectory :) I created a direcoty and it misspelled. I would like to correct that.
0
votes
2answers
301 views

Why using the command `./myFile a` `a` is intepreted as an input parameter?

After compiling a program with g++ -o myFile myFile.cpp I used ./myFile & to execute the program. When using the ampersand, I understand the program is executing in the background. Can someone ...
0
votes
0answers
55 views

sudo apt-get install showing error

sudo apt-get install shows the following error: Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 2 not ...
3
votes
1answer
126 views

How do I show the git branch with colours in Bash prompt?

I am using this guide to show the branch name in gnome terminal (Ubuntu 15.10) when working in a git repository. Based on the above I now have the below in my ~/.bashrc file: # uncomment for a ...
3
votes
2answers
47 views

Output of running commands in Terminal

I use this line to delete files find . -type f -iname \*.vi -delete and this line to move files find . -name "*.doc" -exec mv {} /path How can I see the process as it happen, I mean I don't ...
3
votes
3answers
84 views

How do I capture a screenshot of a window, and all the windows on top of it?

I'm using screenshots as regression tests for GUI software. Before deploying each new version, a series of automatic tasks is run against the old and the new version, screenshots are generated after ...
0
votes
0answers
15 views

Cannot change shell

I have been researching this for about an hour, and tried all the StackExchange answers I could find. I tried solutions from: Can't make ZSH the default shell ...
0
votes
0answers
30 views

Installing Eclipse

Good evening! I'm new with Linux since this week and I'm having an issue when downloading eclipse from this tutorial Indeed, I'm not able to extract Eclipse to /opt/ for global use When I'm doing ...
4
votes
3answers
74 views

ASCII source file checker

For official Ubuntu documentation where the source English files are in docbook xml, there is a requirement of ASCII only characters. We use a "checker" command line (see here). grep --color='auto' ...
0
votes
1answer
21 views

How do I substitute network addresses? [duplicate]

Right now I have a network server that I frequently have to SSH into. Instead of typing: ssh fox@192.168.2.24 I want to be able to say: ssh fox@srv And that it would SSH into the server at ...
-1
votes
1answer
40 views

Can't see terminal [on hold]

I am new to ubuntu and installed a theme, but now i cant see the terminal anymore. The font is black and the background is black. Is there anyway to fix this without using the terminal?
0
votes
0answers
16 views

How do I navigate between directories in terminal like zsh of oh-my-zsh by TAB navigation, but using bash?

I want know how do I navigate between directories in terminal like zsh of oh-my-zsh by TAB navigation, but using bash? I know oh-my-zsh, its directories navigation works perfectly via TAB completion, ...