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

learn more… | top users | synonyms (6)

0
votes
1answer
26 views

How to get the command for existing launcher entries? [duplicate]

How do I get the start command from an existing launcher entry on 16.04?
0
votes
1answer
57 views

How to specify a temporary folder with more disk space via terminal? [duplicate]

I need more disk space at /tmp and /usr folders. How will achieve this? An error appeared: root@kali:/home/Downloads# ./netbeans-8.1-linux.sh Configuring the installer... Cannot create temporary ...
0
votes
0answers
27 views

Clamscan is killed

After an install of clamav-daemon, clamscan is apparently giving itself a SIGKILL (exit status 137) after just showing a warning that the virus data base is older than 7 days. There is no scan ...
0
votes
0answers
18 views

How to create etc/apt/sources.list [duplicate]

The sources.list repository file simply doesn't exist because of an installation issue, causing all sorts of problems because all the commands like .deb and stuff return command not found. What is the ...
0
votes
0answers
16 views

Share folder with another user [duplicate]

How can create and share folder with another user or PC by command? I use Ubuntu 16.04 Thanks :)
0
votes
3answers
66 views

How can I run a shell script from bashrc file?

What I basically want to achieve is to type in a custom command in the terminal and a specific shell script should run each time. I could achieve the above requirement with folders,by modifying the ...
4
votes
1answer
32 views

Using binfmt-misc in conjunction with xattrs

I currently use a piece of sandboxing software on my 14.04 machine that isolates Linux binaries from one another (Using a special type of namespace isolation different than AppArmor) Currently, the ...
3
votes
1answer
36 views

tty1 on monitor A; tty2 on monitor B

This is an odd question, and I don't think I would even have a use for it, but: Can I bring up tty1 on one monitor, and tty2 on the other at the same time?
0
votes
1answer
45 views

Running Ubuntu Touch applications in command line for gdb debugging?

I have already seen some answers related to this, but they didn't bring me to a definitive answer, so I'm going to try again. Basically, my question is: how can I run Ubuntu Touch applications from ...
0
votes
0answers
32 views

USB ports not responding at times in Ubuntu 14.04 LTS at startup but works after a reboot

I have a dual boot windows 8.1 and Ubuntu 14.04 LTS. At startup USB ports not responding at times but works after a reboot.
0
votes
1answer
40 views

Run php File in Browser from Command Line

I have apache2 working and can run php files by navigating to localhost using chrome browser. However I'd like to be able to launch the files within the browser from the command line. google-chrome ...
1
vote
2answers
45 views

Unable to open Eclipse from Dash Home

I can't open Eclipse from Dash Home although it shows its icon. Eclipse was properly installed using apt-get. When I launch Eclipse from Dash Home it doesn't open. It opens only through Terminal. How ...
0
votes
1answer
21 views

Ubuntu can not access other ubuntu hdd which is external

I had 14.04 ubuntu and my laptop crashed. I need to save data from there. So i created a ubuntu 14.04 live usb and put in into my desktop and boot from it. I can see my hdd now (i connected via usb ...
3
votes
4answers
596 views

Is there a log of all activity I could open in terminal?

I'd like to have a terminal opened and study the processes and everything happening in a regular use of Ubuntu. What commands and files can I use to see the logs in real-time? Thanks.
0
votes
0answers
16 views

How to delete several files from a directory using a .txt file where the filenames to delete are listed up? [duplicate]

I have a directory containing several files (approximately 1000 files). I want to remove several of these files using the commandline. The file names from the files I want to delete are listed under ...
-1
votes
1answer
47 views

How to release an IP address and renew from the commandline?

I am using modern versions of Ubuntu that use network-manager, and I would like release and renew my network settings through the commandline. In the olden days when Ubuntu used the interfaces file, ...
1
vote
1answer
28 views

Add a delay to a keyboard shortcut

To put my screens on standby, I've defined a keyboard shortcut: xset dpms force standby This causes the screens to go into standby mode immediately. However, I'd like the computer to wait for 2 ...
2
votes
2answers
20 views

mv a folder and now the folder seems gone

I typed the following: mv /var/www/folder/ ../../ Now I can't find that folder or anything that was inside of it. What am I missing? /var looks like this: root@,my-server:/var# ls -la total 52 ...
1
vote
1answer
32 views

How to check computer's timezone through Terminal? [duplicate]

I am writing a bash script which at some point needs to determine a user's timezone, so how exactly can I check the timezone in Terminal? I would like to be able to get output in terms of GMT and UTC. ...
3
votes
3answers
42 views

No access to the terminal, how can I find it or install it?

So I was uninstalling some programs of mine that I have no use of anymore such as video editors, Skype and Opera. After I completed that, I close my terminal. I realized I needed to install a new ...
0
votes
0answers
27 views

Terminal won't start [duplicate]

Whenever I click Terminal icon it won't open and also I tried xterm and run gnome-terminal. Here is a screenshot of error:
2
votes
3answers
288 views

Cyclic script execution

How to make the cyclic execution of the script? At the end of the script i need to run it again. Cron is not suitable, because i need to run the script immediately after the previous
0
votes
1answer
54 views

-gt: unary operator expected shell script

Getting this error after the upgrade packages in ubuntu. #!/bin/bash used=$(df -H | grep 'rootfs' | cut -d "G" -f 4 | cut -d "%" -f 1) limit=90 if [ $used -gt $limit ]; then Or [ "$used" -gt ...
1
vote
1answer
30 views

Hot Corners Musical Sequence Command Script

I am writing a script which uses hot corners to play specific musical notes when hovering in corners, and depending on the musical sequence to execute a specific command. The script is called with ...
0
votes
1answer
24 views

which system command should i use to get the desired output given below

I need to write a system program that imitates who and w.Print the time since login(in the form HH:MM:SS)and the host name. Allow for a command line option -p that also prints the interesting ...
0
votes
1answer
46 views

How to get different colors in different terminals like BlackArch Linux

BlackArch Linux has 4 different color terminals (terminal green, terminal red, terminal yellow and terminal white). Is there any way for me to set up something similar in Ubuntu?
1
vote
0answers
12 views

Extract page range from pdf [duplicate]

I want to extract the total page range of a pdf using using bash commands. Is it possible to do.
0
votes
1answer
51 views

permission denied

I set the Java command to an alias in my /home/.bashrc. alias java='/home/documents/jdk1.7/bin/java'. However, typing java results in: bash: /home/documents/jdk1.7/bin/java: permission denied
1
vote
0answers
20 views

Username & Host Name are Screwed on Terminal

I have been working on my machine to setup a web server. At a certain point, I noticed my username & host name displayed at the very beginning of each line of terminal commands are different from ...
2
votes
1answer
20 views

Find a file beginning with a string but having a specific extension

It doesn't work if I do this: string*.extension How do I do this? I want to rename a file that has a specific beginning, but is completely random after that, but has a specific extension.
3
votes
2answers
53 views

Shell script password with special chars

I've build a shell mysql backup script which works very well. It only has problems with passwords with special chars like this: xgT{uic[Is?uJ+. Here is the important part of the script: #!/bin/sh ...
0
votes
1answer
32 views

How to connect via ssh and use gcc on target?

I would like to do two things automatically within a bash script: Connect via ssh to my target. Execute gcc. My script looks like this: ( echo "cd myfolder" echo "gcc -o mybin ...
1
vote
1answer
37 views

What is POSIX-compatible mode in Linux?

The book says : When in POSIX-compatible mode, bash will emulate sh. What does this mean? What is meant by emulation in simple layman terms?
1
vote
1answer
34 views

missing package CommandNotFound

I recently updated from 15.10 to 16.04 and now my python3 seems to be messed up. Before the upgrade I had python3.4 and python3.5.1(manually) installed. The upgrade removed python3.4 and replaced it ...
3
votes
0answers
158 views

Slow startup and shutdown after upgrading ubuntu from 14.04 to 16.04

yesterday from terminal I've upgraded ubuntu 14.04 to 16.04 from terminal. All is gone well but now there is a really slow start up and also on shutdown, like over than a minute! Can something went ...
0
votes
1answer
24 views

Changing the HTML file for Apache

I recently bought a domain and put an HTML and a CSS file for Apache with Ubuntu. Anyway, now I want to change them. I removed the CSS file with cd /var/www/HTML and writing sudo rm blabla.css. But ...
-1
votes
2answers
44 views

Cannot tell ubuntu use python3.4 instead of 2.7

I tried this how to tell ubuntu to use python 3.4 instead of 2.7? but nothing.. I have a problem with the nonlocal This is my code: x = 50 def func_outer(): x=2 print('x is '), x ...
0
votes
1answer
51 views

Display Current branch name in ubuntu terminal

I have followed the steps given in the accepted answer in this question - Prepend current git branch in terminal. But even after adding following code to .bashrc and restarting the laptop, I do not ...
0
votes
2answers
292 views

Sublime Text 3 dpkg error [duplicate]

I want to install Sublime Text 3 , but had a problem, my terminal is showing this error: dpkg: error: dpkg status database is locked by another process What shall I do?
-1
votes
1answer
35 views

start screen programm with crontab @reboot

I try to start a start.sh at reboot with crontab. But nothing happens afer a reboot, and the log is without an error. Does someone know what i've done wrong? For testing i gave the start.sh and ...
1
vote
2answers
236 views

Ubuntu 16.04: ' Open in Terminal' context menu on desktop opens it only in home directory

Since upgrade to Ubuntu 16.04, the desktop 'Open in Terminal' context menu opens only in home directory. It's realy uncomfortable. Is there a way to make it open with prompt in desktop directory ? Is ...
3
votes
1answer
40 views

USB stick read only when should be read/write

Sorry, another novice to Linux systems, but became tired of Windows. I am running Ubuntu 15.10 on a PC. Any time I plug in a USB key it defaults to read only and I am unable to copy anything to it. ...
1
vote
2answers
28 views

Why does cat pdf_file changes the character set of terminal? [duplicate]

I was reading through Introduction to Linux by Machtelt Garrels and read about the cat command. I tried to open a pdf file using cat. After opening the file the whole character set of the terminal ...
0
votes
0answers
13 views

How to select outputted text on the command line with the keyboard?

I'm having trouble finding a way of selecting the text that a command outputs in the command line. Is there a way of doing this without the mouse?
0
votes
1answer
38 views

How can I increase the speed of the cursor in Gnome terminal?

Compared to the getty tty's the cursor speed in Gnome Terminal feels slow and sluggish. By cursor speed I mean if say you were in the middle of a long line at a command prompt and you held down ...
0
votes
1answer
34 views

Running .sh file right after login and root login

How can I automatically run a .sh file right after I login with my regular credentials, and my root password. Thanks
1
vote
1answer
2k views

problem with sudo apt-get update ubuntu 16.04

crazy@crazy:~$ sudo apt-get update [sudo] password for crazy: Hit:1 http://dz.archive.ubuntu.com/ubuntu xenial InRelease Hit:2 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu ...
1
vote
3answers
271 views

16.04 : “aptitude” at the command line

After upgrading to 16.04 I tried to use "sudo aptitude update" at the command line and got the error that the command was not found. What do I need to do to be able to use it again?
0
votes
1answer
36 views

How to run a command at login

So I've been looking around and I can find ways to run commands every time you open a new terminal and inadvertently figured out how to make a continuous loop of opening terminals. I've edited ...
0
votes
0answers
18 views

How do I change the (general) shortcut for Copy/Paste/Cut

Because I don't use the traditional QWERTY layout, and instead have opted for the Dvorak layout, it has screwed up the ease of use for doing simple copy/paste/cut etc. functions. How do I remap those ...