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

learn more… | top users | synonyms (5)

0
votes
0answers
4 views

How would I connect to a proxy on ubuntu studio?

So I am running ubuntu studio on my Laptop and what do I do to connect to a proxy? I search for proxy and in network settings their is no PROXY tab. WHat are key words in the tabs to look for?
0
votes
1answer
30 views

Ubuntu 14.04 - Desktop icon is not running my BASH script

I have a simple script runme.sh which works when i run from terminal. #!/bin/bash chromium-browser "https://askubuntu.com/" But i need to make it now runnable for normal Users. So i place a desktop ...
0
votes
0answers
16 views

Folders permutation in real time

Due to small space left in the disk i want to interchange two folders location in two different partition in the same time. I think that when moving a file Ubuntu leave a copy until the hole process ...
0
votes
0answers
11 views

cant edit anything on xampp as sudo user [migrated]

Im new to linux was an avid windows user until recently trying on an old system seing some major differences and converting, so I apologise if this question seems simple. Im running the latest ...
6
votes
1answer
180 views

what is pts/0 , :0 and attributes before it + ,? etc

While reading about Linux, I got a $ who -a, so before trying that I logged into three of my text terminals (tty1,tty2,tty3) respectively,, and then I came back to X-window (Ctrl + Alt +f7),, then I ...
2
votes
1answer
14 views

What is the difference between bzr lp-propose and bzr lp-propose-merge?

What is the difference between bzr lp-propose and bzr lp-propose-merge? Do I have to provide the branch I wish to propose a merge to, or does it assume it for me?
0
votes
1answer
9 views

Ranger file manager - getting it to open archive files with custom script?

I've acquired a custom bash script which extracts all archive files and waits for input. Below: #!/bin/bash GET="." SCRIPTNAME="${0##*/}" err() { printf >&2 "$SCRIPTNAME: $*\n" ...
0
votes
0answers
32 views

Ubuntu doesn't allow me to access my own filesystem

Title says it all. I cannot access or move any files in my own filesystem. I can access things that are on my Home folder and desktop. I need to setup an apache 2 server with Python and Django. ...
1
vote
0answers
44 views

Display running clock in terminal [duplicate]

I want to display running clock inside terminal. I have already gone through this answer but this method only works in zsh terminal. But I want to display in bash. Is there any other way to display ...
0
votes
1answer
12 views

What is the default timeout value for curl when used as command on terminal?

have searched a lot to find out default timeout value of curl. All suggests how to set timeout limit for curl. But Can anybody please suggest what is the default value of curl command timeout time? If ...
1
vote
1answer
26 views

How to login to the GUI from commandline

When I boot up, I sometimes go into tty, execute a few commands and then have to restart the GUI (gmd) with sudo service restart gdm I then go to the GUI (Alt+F7) and have to login. Occasionally, ...
6
votes
1answer
635 views

Difference between cd / and cd //? [duplicate]

What is the difference between cd / and cd //? We can see that adding / to the end doesn't do anything. But when I do cd // and pwd, I found: $ cd // $ pwd // What is difference between / and ...
3
votes
3answers
127 views

How can I get the names contained in the first file that are not i?

I have two files containing billions of DNA sequence names, the second is a proper subset of the first: for example, 1°:john mike anna paul laura .... 2°:john mike paul ... all the names occupy ...
-1
votes
1answer
42 views

Use “watch” in executable script

Is there a way to use "watch" in an executable shell script? I mean this script should be launched with a double click, not directly from a shell... Try this script: #!/bin/bash watch gedit I'm ...
0
votes
1answer
30 views

How to remove comments from an XML file?

Is there a command line tool that can remove comments from an XML file? Or do I need to write a small program that makes use of an XML parser to do this? Update: I'm not interested in solutions that ...
4
votes
1answer
77 views

Use custom command to open files

gedit application is set as default application for text files. Supposing I have a script with execution rights in /usr/bin, how can I set that script to be run when I open a text file using Nautilus ...
0
votes
3answers
44 views

What is wrong in follwing -exec command

I m getting error in follwing command cd /opt/lampp/htdocs/EspoCRM-2.5.2 && find data -type d -exec chmod 775 {} error: find: missing argument to `-exec'
0
votes
0answers
13 views

Questions about checking for badblocks on a almost-definate bad HDD, I am new to Ubuntu

Heres the deal, I'm on an Asus x53sv-mh71, it's my friend's laptop. He dropped it about a month ago, and it stopped working about a week afterward. Wouldn't boot past the "starting windows" logo. I ...
3
votes
1answer
40 views

How to quickly check the value of bash variables, aliases and history commands from terminal?

How do you expand in place: bash aliases environment variables history commands to edit them and check they are correct? For example, I have some aliases I use for flashing different devices and ...
1
vote
1answer
29 views

command 'll' crashes terminal after rellocating /home

I just move my /home and /tmp to another partition and after that I cannot call the commands ll or ls -l without crashing the console. anything wrong? thank you
2
votes
2answers
43 views

Pass variable value to script from terminal

I like the shred command so instead of using the 'rm' command I prefer shred. I would like to create a bash script in /usr/bin, say we will call it "shredder" so that if I want to shred a file (i.e. ...
0
votes
0answers
8 views

Specifying path to java interpreter while installing Java Wireless Toolkit

I have already installed JDK. I could run java programs through command line as well as through Netbeans IDE. Now I want to install java wireless toolkit. I have downloaded the "*.bin" file from ...
1
vote
1answer
34 views

How to assign a keyboard shortcut to show an Ubuntu Desktop notification?

What I am trying to do is, I have a few texts in a file & when I tap a key combination like ctrl+Q, the text should appear as a notification on my Ubuntu Desktop. What is the command to assign ...
10
votes
5answers
857 views

How can I run original command that aliased with same name?

An alias for ls command in ~/.bashrc file aliased with this one: alias ls='ls --color=auto' then, when I run ls command in terminal aliased ls(ls --color=auto) runs. but my question is how can I ...
0
votes
0answers
33 views

how can I make an alias that does not fully remove the file like rm [duplicate]

how can I move a file to trash using an alias?
0
votes
0answers
21 views

access sftp Ubuntu 14.04 LTS

I have Ubuntu 14.04 LTS and would like to access via sftp, I tried to enter sftp myid@MyMachine, I got error message like following. sftp myid@MyMachine ssh: connect to host MyMachine Port 22: ...
1
vote
1answer
17 views

Is there a ubuntu server menu-based network setup tool like during ubuntu install?

During Ubuntu installation I enjoyed using the "Configure the Network" step: I always assumed that there was some dpkg-reconfigure command that would re-run this, and that if I ever wanted to use ...
0
votes
0answers
43 views

Diffrence beetween ' and " in bash [duplicate]

Please bear with my stupid question. I want to know the difference between ' and " in bash. Please explain it to me with an example.
1
vote
3answers
179 views

Run Sublime Text 3 and check version

I have installed Sublime Text 3 following this. How to run it from terminal and how to check the version (from terminal or however)?
0
votes
0answers
17 views

Another copy of splashtop streamer is running

When I start up this application called splashtop streamer by using python /opt/Splashtop-streamer/SRStreamer.pyc at the prompt everything works fine. However, when I add sh -c sleep 10; to the ...
1
vote
3answers
63 views

Not able to run sed on bash script

I am working trough some legacy code which does not work, I came across a part that is causing problems. I was hoping some one could help me out and fill me in on what is the exact functionality of ...
0
votes
2answers
50 views

Bash script special character and background job bug

gnome-terminal --tab -e " sh -c ' gedit'/media/ubuntuman/Onces And for Al/scripts/faceBook' & ; sudo cpulimit -e ubuntu-tweak -l 80;'" This is the piece of code I want to edit. The special ...
0
votes
4answers
53 views

Creating a symbolic link to a directory

I have a directory to which I want to create a symbolic link. The commands I used were: cd workspace_b4a cd android-sdk-linux ln -sv build-tools/20.0.0/lib/ platform-tools/lib The output was: ...
7
votes
5answers
586 views

stdin/stdout- How to send a file as an input to another file?

Through the command shell we can redirect the three standard filestreams so that we can get input from either a file or another command instead of from our keyboard, and we can write output and errors ...
1
vote
3answers
36 views

I can't alias def $?=“type $? || echo 'varible not defined' ”

I want to create an alias called def that takes a varible and checks if it's defined. If it isn't def prints 'the varible is not defined.
0
votes
1answer
16 views

How to install Idea 3GNet Setter in Linux

I've bought an Idea 3G Net Setter and they have provided "Linux driver" and these are the installation details: 2 Driver installation 2.1 Launch command line By using “ALT+F2”, input” ...
0
votes
1answer
45 views

bash: /etc/bash.bashrc: Permission denied I have no name!@lappyname:~$

During resolving another problem I run this command : pkexec chmod 0440 /etc/sudoers pkexec chmod 0440 /etc/sudoers.d/README mount -o remount,rw / Than after error occurs and after reopen the ...
1
vote
2answers
46 views

Reset History inside a bash script [duplicate]

I want to make a bash script that clears the history i.e. works similarly as the command history -c So I started with the following code:- #!/bin/bash history #displaying history history -c ...
0
votes
1answer
40 views

How to convert video using HandBrake?

I have FansConvert site that convert anime and movie into mobile device format, especially 3gp and mp4. I made it to help people who don't have a computer, or are not able to watch on the computer. ...
1
vote
1answer
85 views

How to retrive root password, when someone has changed it?

The fact that, In my Lab, one of the user who is in sodoers list has changed the root password, is there any way to reveal the password he has set? I know how to change it by editing from GRUB but ...
0
votes
1answer
9 views

Formatting an encrypted partition

I was looking at some guides about encrypting partions and decide to try it out with a pendrive. Everything went good until the part of formatting the drive. I'm not an expert working around with ...
0
votes
0answers
11 views

Problems installing Betty in zsh

I tried to install Betty in zsh like that: cd ~ && git clone https://github.com/pickhardt/betty echo "alias betty=\"~/betty/main.rb\"" >> ~/.zshrc source ~/.zshrc I installed her in ...
2
votes
1answer
35 views

Where are key press scripts stored?

When I hit the Volume Up multimedia key, I receive the following output from xev. KeyRelease event, serial 38, synthetic NO, window 0x4200001, root 0x91, subw 0x0, time 100844850, (1037,434), ...
0
votes
0answers
9 views

How to remove fontconfig warnings when running gedit from terminal? [duplicate]

When I was working on a C program with Gedit in Ubuntu 12.04, font configuration warnings were shown in the terminal. What should I do to remove these warnings? shayna@shayna-Vostro-3446:~$ gedit ...
-1
votes
2answers
267 views

How to delete to trash via terminal (with mv command)?

I would like to know how can I delete a file and/or move it to trash with mv command? I know where the trash located is, then I tried with this commands to move it to trash: mv somefile ...
3
votes
2answers
63 views

How to compute date for touch -t

How to create date type in bash? what this date mean? '1803141400' touch -t 1803141400 test1 test2 How can I compute time?
0
votes
1answer
37 views

curl to tar to zip not working properly

I am wanting to download an tar.gz archive, extract it and compress it into a zip file in one command. Reason for this is to be independent from temporary files. The command I use: curl -L "someURL" ...
1
vote
0answers
29 views

key word remap enter carriage return vim command line

In my .vimrc file I have :imap ii <CR> which allows me to hit ii for enter/carriage return in vim but now i would like to set that same configuration in my .inputrc so that i can just hit ...
4
votes
1answer
51 views

How to automatically opening terminal windows & tabs, ssh and sudo su?

When I start my day in front of my computer, I first have to do the following: In workspace 1: Open a new terminal window, ssh loginserver, then ssh serverA1 and sudo su account00 Open a new ...
0
votes
1answer
9 views

Error setting up cscope 15.8 on when creating file cscope.files

I'm running native ubuntu 14.04. I'm trying to install cscope-15.8a. When I run the command find . -name "*.c" -o -name .cpp" -o -name ".h" -o -name "*.hpp" > cscope.files it changes the prompt ...