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

learn more… | top users | synonyms (6)

0
votes
1answer
45 views

I messed up the ~/.bashrc file and now terminal doesn't open ubuntu 16.04 [duplicate]

I just installed Android Studio on my ubuntu 16.04 machine and as I didn't want to go to its own home directory and now every single time I try to open the terminal, it tries to start android studio (...
-3
votes
0answers
35 views

is there possiblity to show full path of all files which have either hard or soft links with commandline [duplicate]

How can I use the terminal to show the full paths of all files which have either hard or soft links? This is not the same question as How can you quickly get the complete path to a file for use in ...
0
votes
1answer
37 views

CTRL+SHIFT+C/V not working in Terminal

I recently upgraded to Ubuntu 16.04 LTS and I found today that my copy/paste commands don't work in the terminal. I've tried every solution I could find with a bit of googling, but nothing seems to ...
0
votes
2answers
64 views

Start terminal in ubuntu with a python script?

How can I start a terminal in Ubuntu 16.04 with a python script, execute commands on that terminal, and retrieve the output from those commands? For example, I want to check the contents of a folder (...
0
votes
0answers
15 views

Sudo /bin/bash -c 'some command' does not load /etc/environment content, not set the env [duplicate]

I've got a bit confused When I do log in via sudo su - I get full environment loaded $ sudo su - # env SHELL=/bin/bash TERM=screen-256color LC_ALL=en_US.UTF-8 HTTPS_PROXY_HOST=myproxy.com ...
2
votes
1answer
99 views

Based on certain patterns exclude lines in file [duplicate]

My file looks like this [0.00137532,[0,13,19,16,18,15,19,16,11,15,12,12,13,14,0,11,17,18,14,17],[0,0,0,0,0,0,0,0,0,0,0,0.0189924,0.0871235,0.179813,0.307779,0$ SITE: 0 0.000853196055 0....
1
vote
1answer
33 views

APK versionName grep

Im trying to retrieve the VersionName of a bunch of apk files i have in different folders and store them in an array , but its not working ... I've tried pretty much everything but it only loops 1 ...
2
votes
0answers
39 views

Burg installing

I tried installing Burg to make my dual boot look better. So, I followed these instructions up to the part where it says: "BURG found! Do you want to configure BURG instead of grub2?, click Yes.". ...
5
votes
1answer
95 views

ImportError: No module named Selenium2Library

I am quite new to Robot Framework and I could use some help. I'm using Ubuntu 14. And I have installed Robot following these steps: # Python package management tool pip. sudo apt-get install python2....
0
votes
1answer
40 views

Replacing a variable permanently in shell [duplicate]

I have file <temp_test.sh> in which I have defined a variable Min_Inc=300000. I then want to get the user input to change the value of Min_Inc. I followed these steps. Read the value using ...
0
votes
0answers
19 views

What is the standard syntax of the su -s command? [duplicate]

i don't sure about the syntax of the su -s command to use an new shell instead of the default.i hope i will get the answer from you.
0
votes
0answers
31 views

Is `cp -R /usr/local/blah /removabledrive` a reasonable way to do a backup?

I'm resetting my Mom's computer because, due to poor maintenance, i.e not deleting anything, it's become too slow to be efficient in anything. She wants to keep just about everything, so nit picking a ...
1
vote
2answers
2k views

What command can delete folders older than X days or X months?

I know a command to do the same with files, but what about folders (and all the files in it of course)?
12
votes
2answers
42k views

Open an existing file from Vim

I would like to open a file that already exists while already in Vim. What is the command to do this?
0
votes
1answer
31 views

how to connect server using linux terminal? [closed]

I am currently using PuTTY to connect to my Linux server. However, I feel like it is unnecessary. Is there a way for me to connect to my Linux server directly from my terminal?
-2
votes
1answer
30 views

sudo apt-get curl and sudo apt-get wget gives “Invalid operation”

I am very fresh in Linux. I tried to use the sudo apt-get command to install both wget and curl utilities. To do that I ran at the following CLI commands: sudo apt-get curl sudo apt-get wget Both ...
5
votes
3answers
233 views

How to create my own terminal commands [duplicate]

I know how to create my custom terminal commands and that would be really useful for me in compiling all my java classes in a folder. I also see that for doing this people usually creates a folder ~/...
38
votes
2answers
81k views

connect to wifi from command line

Other posts seems to be addressing more complicated network connection issues from the command line. The Unity panel Network indicator/button doesn't respond too well sometimes - it keeps trying to ...
1
vote
2answers
2k views

How does fdupes determine which file to keep and which to delete from set of duplicate files scattered in storage disk?

I just downloaded fdupes and was giving it a try. I am curious to know how the software goes about to determine which file it will put first when multiple files are found. I am running: Distributor ...
1
vote
1answer
186 views

ubuntu 13.04 terminal won't read my .ini file

I get this every time I attempt to access it CommandLineParser::read_config_file(): couldn't open xboxdrv-mouse.ini the command I was using was sudo xboxdrv --config xboxdrv-mouse.ini it was for ...
1
vote
0answers
21 views

LinuxDC++ not closing

I have Ubuntu gnome-desktop 16.04 installed in my laptop. The file-sharing network software Linuxdc++(linuxdcpp) is not closing properly in my machine. It started a week ago. When I open it all my ...
2
votes
1answer
4k views

Sudo comes up with an error, cannot run anything as root

For some reason, when I try to run any programs (I am trying to run a rootkit hunter: rkhunter) as root on the command line with sudo like this: sudo rkhunter Then I get this message: You must be ...
143
votes
12answers
295k views

How to check Internet Speed via Terminal?

Instead of going to sites like speedtest.net, or others, I want to check my current Internet speed from the terminal on Ubuntu. How can I do it?
4
votes
3answers
208 views

How do I edit a manpage?

I want to know if a manpage can be edited. If yes how? (If possible by changing in gedit). P.S.- I want to know if a manpage already written can be edited (just for fun).
1
vote
0answers
24 views

VLC media player 2.2.1 is choppy

Ubuntu version is 14.04.1. VLC is choppy depending on how it's started. From the console window this command works fine: /usr/bin/cvlc -vvv /home/matt/Hockey_Footage.m2t --sout udp:239.204.1.106:4000 ...
1
vote
0answers
16 views

terminal x clipboard 0~ prepended 1~ added

With the X clipboard, I often have 0~ prepended and 1~ added to it. That seems to happen often in gnome-terminal. So in a terminal, let's say I highlight abc, then when I middle click, it will become ...
2
votes
2answers
3k views

how can I add a command in terminal to open a file

I save a file Logisim2.7.1.jar in my directory at /home/danny/Application. Whenever I want to run this file in terminal, i have to type these following line in terminal: cd /home/danny/Application ...
1
vote
2answers
33 views

How to add ID3 “cover art” by command line?

I need to add ID3 cover art to some MP3 files. I need a command line tool (no GUI) but it seems that neither id3 nor id3v2 tools can do it. Any hint?
4
votes
4answers
102 views

How to capture lines between two strings from a file, but only the last occurrence?

I have a log file which is output by a script, the log file is rotated daily. It will contain the strings Transfer started at timestamp and Transfer completed successfully at timestamp ...
27
votes
7answers
110k views

How to list all symbolic links in a directory

I have a symbolic link in my /var/www/ directory that links to WordPress. When I run the command ls -la from the /var/www/ directory the link to WordPress doesn't show up. Is there a way to list all ...
0
votes
0answers
56 views

How do I revert back to the Default terminal theme? [closed]

I tried to install many terminal theme with GITHUB. But I want to revert back to the Default. How can I do that?
0
votes
0answers
33 views

How to see all the lines from terminal when the computer last time was turned on

3 days ago my computer was turned on and executed some script file. There was a problem and i didn't make a logger for this script. So how can i get all the lines(logs) from terminal when my computer ...
0
votes
0answers
21 views

How do i connect to Wifi thorugh Terminal in Ubuntu 14.04? [duplicate]

After searching many answers i tried sudo su command which asks me for a password which i m unable to enter. Also when i try wlan0 it says no device found. How do i connect to my WiFi.Please explain ...
3
votes
1answer
2k views

reset or completely remove an installation/htop

I usually use htop in tty when I need to kill a program... or whatever hangs or slows down my pc,now I screwed it up. I tried making changes in htop from the 'setup' option which is accessed by ...
0
votes
3answers
468 views

Problem running vscode from terminal

I followed the instructions for installing vscode: Linux Download Visual Studio Code for Linux. Make a new folder and extract VSCode-linux-x64.zip inside that folder. Double click on ...
0
votes
1answer
21 views

Is this the best way to see my running processes? [duplicate]

So obviously the title says it all. Is this the best way to view my running processes? ps -u whoami
-4
votes
0answers
46 views

What is it? Help me please [closed]

N: Ignoring file 'trusty-dell-csmb-vivid-skl.list.disable' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension N: Ignoring file 'trusty-oem.list.disable' in directory '/etc/...
0
votes
1answer
31 views

How to make added PATH permanent [duplicate]

I recently installed Swift 3.0 on my Ubuntu 16.04, and if I want to access the swift shell, I have to put in export PATH=/home/thebigfootsdad/Downloads/swift-3.0-preview-1-ubuntu15.10/usr/bin:"${...
1
vote
3answers
57 views

String Manipulation

var="<string> 1.11 </string>" I want to get rid of <string> and </string> How can I do it? For now i got this: var=${var:9:4} 1.11
1
vote
2answers
6k views

How to fix dangling symlink error

I am trying to install transmission on my ubuntu 14.04 server and I am unsure whether to skip this part or not. I am trying to give permissions to a folder with sudo chmod -R 770 /etc/transmission-...
4
votes
2answers
52 views

How to create backup CDs of my audio CD collection from the command line?

Using tools available to Xenial Xerus LTS how can I copy an audio CD to a backup CD using purely command line tools? AskUbuntu questions have the most part so far dealt with command line copying of ...
0
votes
1answer
47 views

Black Screen after fresh install of ubuntu 16.04

After fresh install for Ubuntu 16.04 LTS and after typing some commands as: sudo apt-get update sudo apt-get dist-upgrade Than I changed the additional driver to nvidia priority and tested it, I ...
-4
votes
1answer
72 views

permission denied target 'xyz' is not a directory [closed]

Please help with this question : Create a new user called hos with password 123. In the home directory of this user, create a file called xyz, containing a list of all files and directories from /etc ...
3
votes
2answers
62 views

Changing the login shell

If I change my shell with chsh to a shell that I wrote myself, which scripts does it need to execute? I already tried changing to my own shell and surprisingly it worked without an error msg. Now does ...
1
vote
0answers
33 views

service command fails silently

I am on Ubuntu Server 14.04 and I followed the instructions here to setup Apache ActiveMQ (5.13.3). However since activemq was not starting on boot I issued the command sudo update-rc.d activemq ...
8
votes
5answers
57k views

Can't execute .out files, getting permission denied

I have written a C++ program and complied it to produce a.out file. However, whenever I try to run it, I get Permission Denied. I read that we can use sudo, but I can't quite get it to work. I use ...
17
votes
6answers
38k views

Please recommend a hex editor for shell

Can you recommend a hex editor that can be run from shell? I need to be able to edit not only view the content.
154
votes
14answers
330k views

How can you log out via the terminal?

Is there a command, that will take you back to the login screen?
-1
votes
0answers
31 views

How to usb tethering in kali linux? [closed]

I need to usb tethering for internet. I'm using kali linux live boot persistence.
0
votes
1answer
46 views

Linux restrict user to specific folder in var/www

My apache root /var/www/html/ contains the following folders. myapp test testapp I want to create a new user to access only testapp folder (read/write). Other folders shouldn't be read. I created ...