The command-line is the interactive interface to your shell.

learn more… | top users | synonyms (1)

0
votes
1answer
41 views

Access Point configurable via Linux

I'm looking for a simple way to configure an external Access Point (IP address, SSID, WPA key, turn WiFi on/off, etc.) via Linux command line instead of the standard web interface that APs offer. ...
0
votes
1answer
137 views

How to delete an user account with terminal

I created a new account on my Linux OS, using the useradd command, now I want to delete the account created, I'm trying to use the userdel command to delete that account and I get the following error: ...
0
votes
1answer
93 views

Match everything after backslash and before space

I have strings similar to the following: *unknown*\*unknown* (8) hello\morning (3) I'm trying to match just morning or *unknown\*. So far I have tried: [^\\]+$ But that matches from backslash ...
0
votes
1answer
185 views

Compare columns between different files

I have multiple files ( about 20 files with 30000 lines and 32 columns) and I need to keep only the lines that start with the same string. I found these cases that are quite similar to what I need but ...
0
votes
1answer
76 views

Is a “--silent” flag supposed to suppress warnings and errors, or just warnings?

I'm designing a terminal-based application, and I want to implement a --silent flag to suppress noise if they don't want it. In this application, errors are most commonly logged when the application ...
0
votes
1answer
122 views

How to grep the following lines from a file?

I have a file which has the names of many files in a directory in the following format: A20150824.0950-0955_jambala_CcnActiveSessionCounterJob A20150824.0945-0950_jambala_CcnActiveSessionCounterJob ...
0
votes
2answers
2k views

What is the alternative for ls command in linux? [duplicate]

How can I list the current directory or any directory path contents without using ls command? Can we do it using echo command?
0
votes
1answer
96 views

How the command “dns-fix” works?

I had a problem on my DNS and after using this magical command, solved the problem. So I got curious: how this command, dns-fix, worked? I am using the Mint distribution. The command is standard.
0
votes
2answers
163 views

Live monitoring of background jobs

I executed a command like this: nohup some_command &. Now this command is in the background. I can see it with the command jobs. Example output: [1]+ Running nohup some_command &...
0
votes
3answers
124 views

Search for string(s) in files and report four lines of context (match and three following)

I have a string (or a list of strings) that is/are to be searched in all the files of a directory.  For example, if I am searching for ABC, and file1.txt contains ABC on line 6, then I want lines 6, 7,...
0
votes
2answers
62 views

Timing start up time for app launched via terminal command

I'd like to see how long it takes a certain app to fully start. Is there a way to do this launching the app via terminal using some command?
0
votes
1answer
76 views

How does Elinks render HTML? [closed]

I like the elinks browser and I would like to know how does it render the HTML into text, using ANSI styles. I suppose there is a library behind elinks to handle the rendering, or there should be. Is ...
0
votes
2answers
95 views

Using the terminal, what other ways can you delete a file?

Other than rm, what alternative methods will achieve the same result? For example, moving a file to "trash" and securely emptying the trash bin. Or moving the file to /dev/null
0
votes
1answer
47 views

How does “command < filename.txt” look when passing filename into a command

I've got a scenario where I have command < filename.txt so I can pass the contents of filename.txt and use it in command. But say I want to take the contents out of the file and just use them in ...
0
votes
3answers
126 views

Is there something like “common Linux commands”? [duplicate]

I come from the windows world trying to switch to Linux. Sorry for the naïve question but is there something like "common Linux commands"? For example in Windows, the command line is pretty limited, ...
0
votes
1answer
122 views

How to prevent expansion

My script parameters on the mask and consist parameters for the find tool: $mopt=false case $1 in ... -m|--mask-file) if $mopt; then or="-o" fi ...
0
votes
2answers
97 views

Auto Delete Inactive files after x

Is there a way I could delete certain folders after x amount of days of inactivity? I was thinking of using cron but that wouldn't take the inactivity part into consideration. Is there any Debian ...
0
votes
1answer
113 views

What is the logic behind the expression cat > foo << “wordofchoice” [duplicate]

I know the > and >> operators, > puts something into a file by deleting the old content, >> appends something onto the end of the file's content. When I only use cat > foo I am able to write ...
0
votes
1answer
43 views

. as a command line argument to a command running in background

I run grep some-string -r . &. While it is running in bkg, I cd to another directory. It seems that grep interprets the hard link . differently then. What happens before and after I change the ...
0
votes
1answer
46 views

unable to remove stopped job with ctrl+c

When I tried to change from super user to common user and therefore typed "exit", I got an error message, that a job was stopped and I could not log out as root. So I listed the jobs: #jobs [1]+ yes ...
0
votes
1answer
69 views

How can I observe my own actions via terminal

To understand Linux better I want to see which commands run in background. For example when I create new file via GUI, is there any way to see the which command runs in terminal?
0
votes
1answer
110 views

How to switch from input mode into command mode in ed ?

As far as I know, ed starts in command mode. Once I input i,a or c ed changes into input mode. So far it worked. Now I read that in order to switch from input mode into command mode one has to input ",...
0
votes
1answer
116 views

use `mv` command and my file gone [closed]

i want to move myfile.tar.gz to folder My command is mkdir backup mv myfile.tar.gz /backup arrrgh, and the file gone in /backup directory not exist, try using find command not shown how to ...
0
votes
1answer
702 views

ssh-copy-id different port

i am trying execute ssh-copy-id in one port different than 22 (default). I researched and found the command below $ssh-copy-id -i ~/.ssh/id_rsa.pub "user@192.168.0.1 -p 22001" but, when execute the ...
0
votes
1answer
459 views

What does the option -C achieve in ls output?

In the man pages it says: -C list entries by columns However, I really cannot notice any difference between the output of ls or ls -C, could someone explain this to me?
0
votes
1answer
111 views

what do i need to do additionally to start X in order to not end in a black screen?

From the xfce desktop environment in Linux Mint, I pressed Ctrl + Alt + Fn in order to get into a virtual terminal, then I stopped the mdm display manager with killall mdm. So far it worked, but once ...
0
votes
1answer
4k views

command to clean up old log files

I was trying to automate some auto cleaning of my Ubuntu System, with Cron Jobs I tryed to simplify this: sudo find /var/log -type f -name "*.1.gz" -delete sudo find /var/log -type f -name "*.2.gz" -...
0
votes
2answers
2k views

Is there on Ubuntu a best way to execute a program than terminal command “./”

Is there on Ubuntu an best way to execute an program than terminal command "./". I have put PhpStorm into an folder and when I want execute PhpStorm, I must cd bin/ and execute with this command: "./...
0
votes
1answer
389 views

Unzipping several specific files out of many into a directory using the terminal?

I recently installed Linux Mint 17 on my laptop. I had Windows 7 before, and I backed up all of my data onto an external hard drive. Windows 7 crams all of your backup data into a ton of .zip folders. ...
0
votes
1answer
136 views

Remove a folder with the same name as an environment variable

I was messing around with a log4j properties file and accidently made a folder with the following text ${foo} however I also have an environment variable named foo that points to a folder so thus if I ...
0
votes
2answers
397 views

How can I expand all variables at the command line in Zsh?

In an earlier question, specific to bash, I asked How can I expand a relative path at the command line, with tab completion? I liked @Mikel's answer that mentioned using Ctrl+Alt+e to expand all ...
0
votes
2answers
26 views

why some programs needs -h and other no

I know that is not a exciting question, but yet I don't understand why some programs needs program -h and other program --help sometimes is very boring recognize it
0
votes
1answer
163 views

Need to know how to start some GUI programs from terminal to use XMoand

I'm training myself to use XMONAD or something of the sort, but in order to do that, I need to know, from terminal, how to open the following programs: Bluefish Editor Settings (I'm using Ubuntu but ...
0
votes
2answers
397 views

how to run rm in background in terminal

I have the following command to delete files in a folder that are 15 days or older: find /var/www/App/app/var/sessions* -mtime +15 -exec rm {} \; what is the best way to speed this up and run it ...
0
votes
1answer
116 views

Background a process and execute something with one command

Probably it would be easier to do just with a script, but I wonder why can't I do that with one command. What I have tried so far: $ (ls >/dev/null &) && echo $! 3135 $ (ls >/dev/...
0
votes
2answers
146 views

Copy a file in Nautilus and use it in a shell command line

Suppose I click on a file in Nautilus. How can I copy the full address to the clipboard, and then easily paste it into a shell command that I'm typing in a terminal?
0
votes
2answers
856 views

Unable to telnet public ip on port 80

We are facing a communication problem between the public and our private network. We have a Linux based web server behind a firewall and an internet router. As part of some integration, our web portal ...
0
votes
2answers
885 views

Unable to access a folder through group permissions

In order to secure data on my webserver, I have moved the PHP includes to a folder called /var/www-includes (outside of /var/www, the server root). I also ran chown root:wwwadmin and chmod 770 on that ...
0
votes
1answer
249 views

arm-linux-gcc command not working

I have installed the following : yum install gcc-arm-linux* but when i am trying to run the following command: ./arm-linux-gcc it is giving the output as: ./arm-linux-gcc: no such file ...
0
votes
1answer
119 views

Does the unix calendar program `pal` support line breaks?

The unix program pal is one of a variety of command-line calendar programs. Based on the man page, each line refers to an event, and it does not mention event descriptions that span multiple lines at ...
0
votes
1answer
71 views

How to issue a warning to administrator (when the administrator issues a system restart) when user has process running

Background I work on a development team and for each project we have a different server setup to emulate the environment of our customers. It can be hard to keep track of what I was doing on each ...
0
votes
2answers
104 views

How to set Linux to ask for authentication when running potentially dangerous commands?

I've faced times when I accidentally ran dangerous commands and lost all my data. How do I set Linux to ask for current user password or root user password when running potentially dangerous commands ...
0
votes
1answer
576 views

What is the different bash per terminal session for Konsole?

I am using Konsole in Kubuntu. I was wondering what is the difference between a profile in Konsole and the profiles in our bash? I am reading that we can create different profiles per Konsole session ...
0
votes
2answers
524 views

How do I prepare Windows NTFS drives on Linux

I'm upgrading my windows desktop hardware and doing a clean OS install. I'm using SystemRescueCD to prepare my old drives for the upgrade. Long story short, a bit of an emergency, I coudln't do this ...
0
votes
2answers
259 views

zsh: What does the command “time + number” do in zsh

When I type time + number in zsh: # atupal at local in /tmp/atupal/setup/bin [10:01:49] $ time 1 /tmp/atupal/setup/bin/lib/python2.7 # atupal at local in /tmp/atupal/setup/bin/lib/python2.7 [10:01:54]...
0
votes
1answer
397 views

Current IP address as visible from the internet? [duplicate]

I know I can get the locally assigned IP address of my current machine by the local router like so: ifconfig However, I want to know what my IP address is as visible from the outside world. Or, in ...
0
votes
1answer
330 views

what does the following command do?

what does the following command do? I have tried to study the linux command but I could not find out what this command does. here is the command: touch finger ; finger touch
0
votes
1answer
166 views

how to list all the internet's IP ranges? [closed]

I was wondering if I list all the IP ranges directly available on the internet. perhaps also group them by country and ISP? I know that a lot of people do research nowadays on datamining and semantic-...
0
votes
2answers
549 views

How to interact with program from command line

Is there any method to interact with a program directly from the commmand line? For example, I've a program, data.o, which produces a file mydata.out and then I want to plot it with gnuplot. I can ...
0
votes
1answer
109 views

How can I use a variable from a script?

A bash script is running as I defined it in Startup Applications. It is possible to display on terminal a variable used in that script? If yes, how?