Jupyter Notebook Pass Variabel Python ke Shell

dir_path = "/home/foo/bar"
!cp file1 $dir_path

dir_path = "/home/foo/bar"
!cp file1 {dir_path}

!cp file1 {dir_path + sub_dir}
HosseinZaaferani