Skip to content
  • About Us
  • Contact Us
  • Privacy Policy
  • Terms and Conditions

Programming Tutorial

Start Learning to Code

  • About Us
  • Contact Us
  • Privacy Policy
  • Terms and Conditions

Breaking News

Nextjs: running code after complete fetch

why does 400 status code result always entercatch block execution with axios?

Saving the state of the button onClick

TypeScript: Specify that value must be in Array using spread operator

Show separate number with comma in django tempalte

Why does my website keep showing old index.html, style.css, app.js…?

Using Python Flask to change the colour of an icon when it detects a words like scam, pending and verified

x clear icon appears only when the input has value – react

Login button redirects to two pages. For first time loginers, it redirects to agreement page, and for rest, it redirects straight to home?

WebComponent setter not triggered if defer is used

Tag: unix

Linux

replace a word with string in a file using shell

admin June 23, 2021

I have a file in which I have to convert the string “lock allpages” into STRING ” LOCATION ‘hdfs://LOCATION/DIRECTORY/TBL;’ ” . I tried sed but it’s throwing some error. can …

linuxscriptingshellunix
Linux

selecting required sql from script using shell scripting

admin June 23, 2021

I have a sybase ddl file having ddl’s of many tables.. but the issue is along wth ddl there are many other things and unnecessary index creation script and comments. Is there any way to extract only …

linuxscriptingshellunix
Linux

mv: cannot move, Permission denied in WSL

admin June 12, 2021

I’m getting mv: cannot move, Permission denied error, but before claiming this is a dupe, please see what I’ve tried first: First of all, it has nothing to do with file or directory mode: $ mv -f ….

emacslinuxpermissionsunixwindows-subsystem-for-linux Comment on mv: cannot move, Permission denied in WSL
Linux

In Linux Shell, how to find out which commands I use most often and how often?

admin May 20, 2021

I want to find out which are the top 5 commands that I ran in the shell. I want to see which commands I use most often. It would be great if I can also see how often I ran these top commands. Is there …

command-linelinuxshellunix
Linux

How to find a files which names start with a certain amount of digits?

admin May 13, 2021

I am trying to locate files by name, ones that start with at least three digits for example. find . -type f -name [0-3]* will find files starting with numbers up to 3, but not with a string of three …

linuxunix
Linux

BASH comments: Difference between # (hash) -vs- : (colon) commenting

admin May 12, 2021

In bash GNU bash, version 4.2.46(2)-release (x86_64-redhat-linux-gnu) or any stable one, You can use # or : to comment What’s the difference between these 2 and usefulness? I noticed # comment makes …

bashcommandcommentslinuxunix
Linux

C++ getpid() vs syscall(39)?

admin May 7, 2021

I read that syscall(39) returns the current process id (pid) Then why these 2 programs output 2 different numbers? int main() { long r = syscall(39); printf(“returned %ldn”, r); …

clinuxmacossystem-callsunix
Linux

How does a Unix program know to change output if it’s being piped?

admin March 23, 2021

Calling something like ag (a grep alternative) results in an output that’s human readable. Results are printed with headers. Useful for humans, horrible for programs. $ ag ‘filter(‘ tests/…

linuxpipeshellunix Comment on How does a Unix program know to change output if it’s being piped?
Linux

Creating a symbolic in shared volume of docker and accessing it in host machine

admin March 4, 2021

I am creating a symbolic link in mounted volume of a host machine inside a docker. But I am unable to access it in host machine. Is it possible to do it. If yes how can I do that. I used the following …

dockerlinuxpythonsymlinkunix
Linux

How to connect to SQLPLUS and run SQL script within ssh unix?

admin March 3, 2021

I have the following bash script: #!/bin/bash set command “sqlplus -s user/password@tns” ssh -t test@192.168.94.139 $command Now, I want to run te following sql script (which is on the …

bashlinuxsqlplusunix

Posts navigation

1 2 … 44 Next
Privacy Policy