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

learn more… | top users | synonyms (5)

4
votes
1answer
66 views

terminal command for listing available shells

I need to check out which shells are available. Which command gives me available (installed shell like, tcsh, csh, bsh) shells in terminal?
6
votes
2answers
493 views

Piping to “type” command

I want to find out the type of several commands. Is it possible to pipe or xargs a search result from find into the type command in Linux? For example: find . -name anacron | type or find . -name ...
2
votes
1answer
27 views

Print again the last printed paper using command line

The scenario : I want to print again the last printed paper in my printer... Is't possible... I've came to some commands such as lpstat, lpr , lp but can't find if such option is really exist. Any ...
0
votes
1answer
25 views

How do I bind Windows key using command line?

I want to map Windows key (without any additional key) on Ubuntu to be able to launch Terminal (xterm). I've already went through this information but I don't know how to go from there. How can I ...
3
votes
1answer
45 views

Suddenly can't run sudo

I didn't do anything on the computer except Internet for a few days and suddenly when I tried to do: $ sudo apt-get update I got: sudo: effective uid is not 0, is /usr/bin/sudo on a file system ...
-1
votes
1answer
38 views

how to solve “No such file or directory ”error? [closed]

No such file or directory error is being displayed although the directory(folder) is existing
2
votes
1answer
43 views

How to make a bootable pendrive in command-line?

How could a Bootable USB Pendrive can be created using the Ubuntu command-line. Can we use a script for the same? Can somebody help on this?
1
vote
0answers
22 views

How to pass the line number, where the mismatch occurred in awk, to Shell variables?

I am trying to compare two csv files. I want the line numbers to be stored into shell variables or array. I tried something like this: paste <(awk -F, '{print NR,$1}' file1) <(awk -F, ...
2
votes
2answers
23 views

remove file with -h_some_file_name in shell [duplicate]

I have a problem when trying removing a file with name something like -h_some_file_name, this is because of generated script that I made and forget to check the prefix. If I run the command rm ...
0
votes
1answer
43 views

Run commands “without” terminal

Months ago I saw a guy running commands from a small, text-box-like window, showing nothing else other than the text-box for you to write the command. Such text-box would popup by pressing some ...
0
votes
1answer
98 views

How to find a graphics driver that works (faulty with nouveau & nvidia)?

I'm unable to access my Ubuntu 14.04 or Win XP partitions. When I try to log in to Ubuntu sometimes I get to the password point and my mouse stops working, or I get a black screen before that and ...
1
vote
3answers
83 views

Remove duplicated from two files and merge the unique ones

I Have two big text files, checksums_1.txt and checksums_2.txt, I want to parse these files and remove duplication between them and merge the unique lines in one file. Each file have the following ...
3
votes
2answers
53 views

How to execute a shutdown with timer and screensaver command in a script

I made this script when executed will shutdown my system (after some time) and should enable a screensaver. #!/bin/bash sudo shutdown -h +30 gnome-screensaver-command -a There are mainly two ...
0
votes
1answer
19 views

Installed script with pip: Run like a command

I installed this python script scdl to download audio from soundcloud. The script is installed to ~/.local/bin How can I run this script in a terminal like a programm? So I don't enter the whole path ...
1
vote
0answers
26 views

Having problem with opening softwares from the terminal (including wireshark & gedit)

I am using Ubuntu 14.10 and I am having errors opening softwares from the terminal. For example: build@build:/usr/local/bin$ sudo wireshark gdk_mir_display_open Failed to connect to Mir: Failed to ...
0
votes
0answers
11 views

Getting message about not installed Sphinx

I try to use Sphinx, when I run: sudo indexer --all , getting the folowing: Sphinx 2.2.7-id64-release (r4883) Copyright (c) 2001-2015, Andrew Aksyonoff Copyright (c) 2008-2015, Sphinx Technologies ...
118
votes
8answers
6k views

Terminal 'incognito mode'?

I use Terminal a lot, and sometimes I am running commands, which aren't things I don't want others to see, but more commands that if I accidentally arrowed up to and accidentally executed would cause ...
2
votes
3answers
208 views

What does `pbrun -u [username] dap' do?

What does pbrun -u [username] dap do? I tried to search for the dap option, but not sure exactly what this dap stand for and its functionality.
2
votes
1answer
42 views

How to redirect stderr to a file

While using nohup to put a command to run in background some of content appear in terminal. cp: error reading ‘/mnt/tt/file.txt’: Input/output error cp: failed to extend ‘/mnt/tt/file.txt’: ...
-1
votes
0answers
8 views

How to operate Debian in Android? [closed]

I have a Micromax A311, Android Kitkat and I have installed Debian. But I don't know how to operate it I am new to this. Please help me out with the basics of this OS. Like when I open the root ...
-1
votes
0answers
18 views

sudo cannot be executed in a terminal (14.10) [duplicate]

i want to update true terminal but when i enter sudo apt-get update i get the following respond: sudo apt-get update [sudo] password for tjarco: E: Type 'sudo' is not known on line 2 in source list ...
172
votes
6answers
19k views

How can I make my shell prompt look like a cheeseburger?

I want my shell prompt to look like a cheeseburger! 🍔🍔🍔 It would be nice if it also displayed: username, hostname, and current directory.
4
votes
4answers
79 views

Terminal: Avoid repeating directory multiples times to reach files within

I have two files file1.txt , flie2.txt in a directory X. I want to copy those files to my current working directory which is far away from the directory X. so I end up with a command like: cp ...
0
votes
1answer
19 views

Is it possible to bring terminal (invoked from GUI) to the CLI terminal?

Due to graphics driver failure after dist-upgrading my "AMD powered" system I am unable to login to my account. The login screen is just bouncing back and not showing me the result of that upgrade ...
-1
votes
1answer
51 views

help with my script “path of shell” [on hold]

I usually php but also use bash to automate tasks on my server. I am trying to test this bash script but I'm not sure what "path of your shell" means. If anyone could help me with what i am meant to ...
3
votes
1answer
46 views

Why does shutdown from a remote terminal fail to power off my machine? [duplicate]

I have noticed that if I shutdown Ubuntu 14.04 from a remote terminal via ssh and running sudo shutdown now, the machine does not power off. If I use the GUI (shut down using Unity on the machine ...
0
votes
1answer
35 views

How is it possible that I can execute JAR file from shell?

I always thought, only executables in UNIX/Linux are ELF-files and shell scripts. But i found that it is possible to use just $ ./file.jar instead of $ java -jar file.jar. How are JAR-files special? ...
1
vote
1answer
13 views

Ruby command not recognized after installing it with rvm

I followed this tutorial to install ruby with rvm: https://www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-on-ubuntu-12-04-lts-precise-pangolin-with-rvm The problem is that ...
7
votes
4answers
263 views

How can I change the filename timestamp?

I have dat files' names in chronological order: FileName_YYYY_MM_DD_HHMM.dat Is there any commands for adding 30 minutes to each timestamp?
1
vote
1answer
68 views

Installing Spotify

Hi everyone I'm attempting to install spotify, I've been running linux for less than 24 hours so please cut me some slack if this seems trivial. Here is a link to the webpage ...
6
votes
1answer
376 views

How to recover accidentally removed /bin/ls binary

I have mistakenly deleted the ls executable from the /bin folder. Can I recover it or install it through the terminal?
16
votes
5answers
964 views

How to delete all files except one named file from a specific folder [duplicate]

Here is the situation. I have a directory which contains many files with different extensions. I want to delete all files except one with a specific name. This could be easily done using the GUI by ...
5
votes
1answer
99 views

How to use some of the arguments of a previous command without retyping

Back to Run a command with the argument from the last command. This post explains how to use the previous commands argument in the new command. My question is how to iterate among those arguments. ...
2
votes
1answer
46 views

Most of the time I get '^?' instead of backspace action

I am finding a lot of the time that if I press BACKSPACE I just get this in the GUI Terminal app: ^? I also find that if I press INSERT that I get: ^[[2~ And this is becoming rather annoying as ...
1
vote
1answer
16 views

Problem while trying to create an alias

Goodmorning I was trying to create an alias so as to launch matlab easier. I read this post :How to create a permanent "alias"? and I used the commands in this line echo "alias ...
-1
votes
0answers
14 views

how to Recover the data from formated hard while installing ubuntu 14.04?

i have recently tried to installed ubuntu 14.04.... but i was not able to install due to not sufficient memory..... when i quit the installation and then restart the computer to start using e the ...
-2
votes
0answers
15 views

Just install Ubuntu server 14 - Need to install lite GUI [duplicate]

I am new and trying to learn. I have install ubuntu sever, and now I would like to install GUI, it tells me unable to locate package. I try searching the answer but no luck. I am logged in as root, ...
1
vote
2answers
24 views

How to bring wlan0 up without connect to any access point?

How to bring my wlan0 interface up without connect to any access point using command line? Note: Ubuntu Server 14.04
2
votes
0answers
56 views

'sudo poweroff' in Terminal turns screen of but does nothing else

I have found that recently when I execute the command: sudo poweroff In the GUI Terminal app that what actually happens is that my screen fully turns off, but my machine does not. It just sits ...
0
votes
2answers
67 views

Using script /bin/sh -c gnome-terminal to open 4 Terminal Windows at Startup

I'm trying to open 4 Terminal Windows at startup and I'm using the script below to do so. However, it's only opening 1 terminal Window instead of 4. /bin/sh -c gnome-terminal; /bin/sh -c ...
5
votes
1answer
115 views

Working with text files encoded as Windows-1250 and UTF-8

I am switching between Ubuntu and Windows frequently therefore I have some encoding problems with text files. If I save text file in Ubuntu, everything works fine in both systems. But Ubuntu doesn't ...
12
votes
2answers
448 views

Copy files and directories without files content

Is there a way to copy directory structure with files but without their contents. I mean that I want exactly the same directories with files names but leaving them blank/empty. I have few example ...
3
votes
1answer
47 views

Is't possible to view Google chrome bookmarks and history from terminal

Is't possible to view google chrome bookmarks and history by using command line?
1
vote
0answers
39 views

Problems Installing Metasploit Framework on Ubuntu

I have encountered 3 problems while following this guide to installing Metasploit Framework on Ubuntu and Debian: 1) After installing proper version of ruby, there is a command given for installing ...
4
votes
2answers
325 views

How to create a rotation animation using shell script?

I looking for a script that creates a rotating animation using character /,-, | and \. If you continuously switch between these characters it would look like its rotating. How to make this?
0
votes
4answers
32 views

changing the text color in ubunut terminal?

Im watching a cbt nuggets titles linux essentials, and the trainer is using zubuntu, im using ubuntu, the colored teminal in zubuntu is so useful for me as im learning linux. How i can make the text ...
1
vote
1answer
18 views

problem using unrar and adding alternative search paths

following this guide http://www.reddit.com/r/PleX/comments/2pxx9e/rar2fs_install_guide_linux/ Im stuck at : "./configure" ending with error saying Can't find unrar source - add alternative source ...
2
votes
1answer
64 views

How to make a batch file add users to groups?

I need help with a GCSE project, I'm stuck on the last question. It asks for a bash script to create users, and then assign them to groups. I've already made the script add new users, but I'm unsure ...
1
vote
2answers
35 views

Running Transmission as Root

How can I run Transmission as root? I have tried sudo transmission with no joy. qBittorrent works, but I have to download it.
3
votes
1answer
27 views

Keyboards writes “bad” space characters in gnome terminal

It looks like at random times my keyboard inserts a character that is displayed as a space character but isn't one, preventing the shell from interpreting it correctly. For example before "sort" below ...