Tagged Questions
The command-line is the interactive interface to your shell.
1
vote
1answer
26 views
Remove first character in a folder name [duplicate]
How can I remove the first letter from a directory name? for example:
Folder is named as "AFolder_01" how can I rename it to "Folder_01"
The reason for my question is that I have list of folders and ...
3
votes
1answer
33 views
Erase character with BackSpace on a bash command line
I have a configuration for bash and profile files, but I copied that file to other server so now I can't erase text only by pushing backspace, I need to press Shift + Backspace to erase text.
What is ...
0
votes
0answers
20 views
Format other drives than /dev/sda using dd
I have a second laptop which I want to sell. Before that, I need to erase my entire computer securely. To do so, I use an Ubuntu Live USB-Stick.
Entering lsblk gives me the following result:
max@...
8
votes
2answers
525 views
Finding last item in a line using grep
I'm attempting to take the last word or phrase using grep for a specific pattern. In this example, it would be the from the last comma to the end of the line:
Blah,3,33,56,5,Foo 30,,,,,,,3,Great ...
0
votes
0answers
17 views
fatal: cannot exec 'git-archive-all': Permission denied
I'm running a Perl script that has a line to run git-archive-all in the command line:
runx $git, 'archive-all', '--force-submodules', '--prefix', "$name-$version/",
$src_dir->file("$name-$...
0
votes
1answer
18 views
Is it possible to browse samba resources in command line?
I would like to browse Samba server resources from my command line. I guess this is possible, though not that sure if I could cd to smb directories. Do I need any special package to do that?
1
vote
1answer
27 views
Command to cycle commands?
Is there a command containing command1, command2, command3, command4, etc that when run will cycle between these?
My idea would be then to use that one command with a shortcut or launcher (in ~/....
3
votes
2answers
156 views
How to search and print corresponding value of match from the command line?
I have below string,
e.g.
2017-01-19:31:51 [ABCD:] 37723 - MATCH: 10 [text]
I want to find MATCH and print its value, 10, using awk. I am able to do this using traditional grep and cut but want to ...
1
vote
2answers
24 views
Find a file by hash
I have a file x1 in one directory (d1) and I'm not sure if the same
file is already copied (x2) in another directory (d2) (but automatically
renamed by application).
Can I check if hash of file x1 ...
0
votes
0answers
33 views
Reading Gmail from command-line: Full message body, and not just a summary
When I issue this command...
$ gmailUser=RECEIVER
$ gmailPassword="..."
$ curl -u "$gmailUser:$gmailPassword" --silent "https://mail.google.com/mail/feed/atom"
... I do see a summary of new message(...
2
votes
2answers
28 views
+200
Identify the slow hop when downloading video
I'm downloading a video as follows
$ youtube-dl url_to_video
The download of the file is very slow
33.1% of 301.31MiB at 19.75KiB/s ETA 02:54:03
It was usually faster.
Could you identify with ...
1
vote
1answer
40 views
Determine how bash or sh was called
From a bash or sh shell, how can I determine if it was called with the bash or sh command, a login shell, an xterm, and, in the case of the former, how was that called?
For example, if I call bash ...
0
votes
1answer
35 views
How to download packages without FTP access on a Linux Server if no download commands are listed?
I am not a Linux expert and currently using a Fedora 23 Server (so only command line) with no FTP access for a project. I am used to install software directly in command line with prepared download ...
1
vote
1answer
19 views
mogrify -monochrome to several Picture
I have some Picture, that I want have in black and white.
I'am in the right folder.
-rw-r--r-- 1 alex alex 1027 Jan 21 13:07 target-0.jpg
-rw-r--r-- 1 alex alex 1001 Jan 21 12:17 target-1.jpg
-rw-...
-3
votes
1answer
38 views
How to copy the id_rsa.pub keys in remote server authorized_key without knowing the remote server password [on hold]
I want to login in remote server and I don't know the remote server password. I am doing the below command
cat id_rsa.pub | ssh [email protected] | cat > authorized_keys
or
scp id_rsa.pub root@...