Questions tagged [command-line-interface]

A command-line interface (CLI) is a mechanism for interacting with a computer operating system or software by typing commands to perform specific tasks.

A command-line interface (CLI) is a mechanism for interacting with a computer operating system or software by typing commands to perform specific tasks.

1564 questions
0
votes
2 answers

How i can install samba to unix server?

How i can install samba to unix server ? .... for example i can install openssh-client in linux by the following command :- apt-get install openssh-client how i can install samba in unix .... by command ??????
Mohammad AL-Rawabdeh
  • 1,612
  • 12
  • 33
  • 54
0
votes
4 answers

I'm having trouble restarting openssh server

I'm trying to restart openssh-server in Ubuntu 10.10 by typing: sudo /etc/init.d/ssh restart and I'm getting this error: sudo: unable to execute /etc/init.d/ssh: Text file busy
binaryorganic
  • 6,021
  • 4
  • 18
  • 19
0
votes
2 answers

Zip up a folder, but only include folders with numerical names?

I have a very messy folder which contains thousands of files and directories. I would like to create a Zip file which only contains some of the folders (and files within those folders) - specifically those folders which have number-only names (104,…
Professor Frink
  • 529
  • 4
  • 7
  • 15
0
votes
1 answer

Commands output to xconsole how?

What I wants to do is to use xconsole to get the output of some user commands. Basically as a regular user, I wanto concentrate my some commands outputs in xconsole so I will have a common place to get them. I use several terminals so this is the…
0
votes
3 answers

SUDO permissions, file copy/chmod question?

So, I'm logged in as sudo, and seeing this... why? $ cd /var/www/drupal-6.19/sites/default $ ls default.settings.php $ sudo -v [sudo] password for sudo_username: $ cp default.settings.php settings.php cp: cannot create regular file `settings.php':…
blunders
  • 813
  • 7
  • 14
  • 30
0
votes
1 answer

Online test to learn Linux command-line based on frequency of command-line operation and it's methods use?

Trying to learn Linux command-line as fast as possible, know of any online test that progressively present questions requiring a command be entered. Looking for test that recall what I've answered, and not answered -- and that present command-line…
blunders
  • 813
  • 7
  • 14
  • 30
0
votes
2 answers

store the last part path of file in variable?

store the last part path of file in variable? i have path for example :- $1=/path1/path2/path3 i want to store path3 in variable x=path3 how i can do it in :- 1-windows 2-unix
Mohammad AL-Rawabdeh
  • 1,612
  • 12
  • 33
  • 54
0
votes
1 answer

How to I Document User Rights on an existing Linux System?

Need to document user rights on an existing Linux system. What commands, actions, etc. will allow me to gather complete user profiles? User rights include, but are not limited to: File/Directory: Read, Write, Execute and Delete Access: Root, su,…
0
votes
1 answer

path as variable

BACKUP_SERVER_NAME="name" BACKUP_SERVER_USERNAME="user" COPY_FILE_TO_WINDOWS="/cygdrive/c/unix_test_copy" scp -r /$1/ $PRIMARY_SERVER_USERNAME@$PRIMARY_SERVER_NAME:$COPY_FILE_TO_WINDOWS How can I pass a path to variable and how I can pass it to…
Mohammad AL-Rawabdeh
  • 1,612
  • 12
  • 33
  • 54
0
votes
1 answer

how i can check if the path (file) exist or not in unix bash?

i want to check a path if exist or not before pass it as argument
Mohammad AL-Rawabdeh
  • 1,612
  • 12
  • 33
  • 54
0
votes
1 answer

Cisco ASA5510: command 'static' is unrecognized

Greetings Experts, I'm setting up a static NAT from outside to inside on my Cisco ASA5510, something like this: # static (inside,outside) 123.45.67.89 192.168.1.254 255.255.255.255 static (inside,outside) 123.45.67.89 192.168.1.254 255.255.255.255…
hawkexp
  • 123
  • 4
0
votes
2 answers

Execute ssh command without password?

I execute the following command: ssh -l admin hostname command Each time I execute it, I am asked to enter a password. How can I automatically provide it with a password since I am going to put this in a bash script?
Mohammad AL-Rawabdeh
  • 1,612
  • 12
  • 33
  • 54
0
votes
1 answer

how I can return more than one value from windows to unix-AIX?

i'm have to server:- 1-windows-server 2003 2-UNIX-AIX I execute something in windows server and now I want to return some value from windows to unix .... how I can do it I install copssh in windows server and openssh in unix server
0
votes
1 answer

how i can pass argument to windows 2003 batch file and execute it from unix-aix and return value to unix-aix

how i can pass argument to windows 2003 batch file and execute it from unix-aix and return value to unix-aix
Mohammad AL-Rawabdeh
  • 1,612
  • 12
  • 33
  • 54
0
votes
2 answers

track downloads from server on ubuntu?

Kinda server noob. Is there a simple command to run on server access logs to track downloads of a particular file? Running Ubuntu 10.04.