Show running processes with file name

本文介绍如何使用Linux系统自带的功能来查看指定进程的各种信息,包括正在运行的可执行文件、打开的文件列表及完整的命令行参数等。通过这些命令,用户可以更深入地了解进程的状态及其资源占用情况。

If you want to see what executable the process 1234 is running:

ls -l /proc/1234/exe

If you want to see what files that process has open:

ls -l /proc/1234/fd

If you want to see the full command line with arguments:

tr '\0' '\n' </proc/1234/cmdline

If you prefer to use commands, lsof -p1234 shows all the files the process has open. ps uww 1234shows various pieces of information about process 1234 including the full command line.

docker compose --version Usage: docker compose [OPTIONS] COMMAND Define and run multi-container applications with Docker Options: --all-resources Include all resources, even those not used by services --ansi string Control when to print ANSI control characters ("never"|"always"|"auto") (default "auto") --compatibility Run compose in backward compatibility mode --dry-run Execute command in dry run mode --env-file stringArray Specify an alternate environment file -f, --file stringArray Compose configuration files --parallel int Control max parallelism, -1 for unlimited (default -1) --profile stringArray Specify a profile to enable --progress string Set type of progress output (auto, tty, plain, json, quiet) --project-directory string Specify an alternate working directory (default: the path of the, first specified, Compose file) -p, --project-name string Project name Management Commands: bridge Convert compose files into another model Commands: attach Attach local standard input, output, and error streams to a service's running container build Build or rebuild services commit Create a new image from a service container's changes config Parse, resolve and render compose file in canonical format cp Copy files/folders between a service container and the local filesystem create Creates containers for a service down Stop and remove containers, networks events Receive real time events from containers exec Execute a command in a running container export Export a service container's filesystem as a tar archive images List images used by the created containers kill Force stop service containers logs View output from containers ls List running compose projects pause Pause services port Print the public port for a port binding ps List containers publish Publish compose application pull Pull service images push Push service images restart Restart service containers rm Removes stopped service containers run Run a one-off command on a service scale Scale services start Start services stats Display a live stream of container(s) resource usage statistics stop Stop services top Display the running processes unpause Unpause services up Create and start containers version Show the Docker Compose version information volumes List volumes wait Block until containers of all (or specified) services stop. watch Watch build context for service and rebuild/refresh containers when files are updated Run 'docker compose COMMAND --help' for more information on a command.
11-26
jzuser@vpc87-3:~/Work_dir/Gn/pystudy/NnuNet/nnUNet$ nnUNetv2_plan_and_preprocess -d 3 --verify_dataset_integrity --npfp 8 --npp 8 usage: nnUNetv2_plan_and_preprocess [-h] [-d D [D ...]] [-fpe FPE] [-npfp NPFP] [--verify_dataset_integrity] [--no_pp] [--clean] [-pl PL] [-gpu_memory_target GPU_MEMORY_TARGET] [-preprocessor_name PREPROCESSOR_NAME] [-overwrite_target_spacing OVERWRITE_TARGET_SPACING [OVERWRITE_TARGET_SPACING ...]] [-overwrite_plans_name OVERWRITE_PLANS_NAME] [-c C [C ...]] [-np NP [NP ...]] [--verbose] nnUNetv2_plan_and_preprocess: error: unrecognized arguments: --npfp 8 --npp 8 jzuser@vpc87-3:~/Work_dir/Gn/pystudy/NnuNet/nnUNet$ nnUNetv2_plan_and_preprocess -h usage: nnUNetv2_plan_and_preprocess [-h] [-d D [D ...]] [-fpe FPE] [-npfp NPFP] [--verify_dataset_integrity] [--no_pp] [--clean] [-pl PL] [-gpu_memory_target GPU_MEMORY_TARGET] [-preprocessor_name PREPROCESSOR_NAME] [-overwrite_target_spacing OVERWRITE_TARGET_SPACING [OVERWRITE_TARGET_SPACING ...]] [-overwrite_plans_name OVERWRITE_PLANS_NAME] [-c C [C ...]] [-np NP [NP ...]] [--verbose] options: -h, --help show this help message and exit -d D [D ...] [REQUIRED] List of dataset IDs. Example: 2 4 5. This will run fingerprint extraction, experiment planning and preprocessing for these datasets. Can of course also be just one dataset -fpe FPE [OPTIONAL] Name of the Dataset Fingerprint Extractor class that should be used. Default is 'DatasetFingerprintExtractor'. -npfp NPFP [OPTIONAL] Number of processes used for fingerprint extraction. Default: 8 --verify_dataset_integrity [RECOMMENDED] set this flag to check the dataset integrity. This is useful and should be done once for each dataset! --no_pp [OPTIONAL] Set this to only run fingerprint extraction and experiment planning (no preprocesing). Useful for debugging. --clean [OPTIONAL] Set this flag to overwrite existing fingerprints. If this flag is not set and a fingerprint already exists, the fingerprint extractor will not run. REQUIRED IF YOU CHANGE THE DATASET FINGERPRINT EXTRACTOR OR MAKE CHANGES TO THE DATASET! -pl PL [OPTIONAL] Name of the Experiment Planner class that should be used. Default is 'ExperimentPlanner'. Note: There is no longer a distinction between 2d and 3d planner. It's an all in one solution now. Wuch. Such amazing. -gpu_memory_target GPU_MEMORY_TARGET [OPTIONAL] DANGER ZONE! Sets a custom GPU memory target. Default: 8 [GB]. Changing this will affect patch and batch size and will definitely affect your models performance! Only use this if you really know what you are doing and NEVER use this without running the default nnU-Net first (as a baseline). -preprocessor_name PREPROCESSOR_NAME [OPTIONAL] DANGER ZONE! Sets a custom preprocessor class. This class must be located in nnunetv2.preprocessing. Default: 'DefaultPreprocessor'. Changing this may affect your models performance! Only use this if you really know what you are doing and NEVER use this without running the default nnU-Net first (as a baseline). -overwrite_target_spacing OVERWRITE_TARGET_SPACING [OVERWRITE_TARGET_SPACING ...] [OPTIONAL] DANGER ZONE! Sets a custom target spacing for the 3d_fullres and 3d_cascade_fullres configurations. Default: None [no changes]. Changing this will affect image size and potentially patch and batch size. This will definitely affect your models performance! Only use this if you really know what you are doing and NEVER use this without running the default nnU-Net first (as a baseline). Changing the target spacing for the other configurations is currently not implemented. New target spacing must be a list of three numbers! -overwrite_plans_name OVERWRITE_PLANS_NAME [OPTIONAL] uSE A CUSTOM PLANS IDENTIFIER. If you used -gpu_memory_target, -preprocessor_name or -overwrite_target_spacing it is best practice to use -overwrite_plans_name to generate a differently named plans file such that the nnunet default plans are not overwritten. You will then need to specify your custom plans file with -p whenever running other nnunet commands (training, inference etc) -c C [C ...] [OPTIONAL] Configurations for which the preprocessing should be run. Default: 2d 3f_fullres 3d_lowres. 3d_cascade_fullres does not need to be specified because it uses the data from 3f_fullres. Configurations that do not exist for some dataset will be skipped. -np NP [NP ...] [OPTIONAL] Use this to define how many processes are to be used. If this is just one number then this number of processes is used for all configurations specified with -c. If it's a list of numbers this list must have as many elements as there are configurations. We then iterate over zip(configs, num_processes) to determine then umber of processes used for each configuration. More processes is always faster (up to the number of threads your PC can support, so 8 for a 4 core CPU with hyperthreading. If you don't know what that is then dont touch it, or at least don't increase it!). DANGER: More often than not the number of processes that can be used is limited by the amount of RAM available. Image resampling takes up a lot of RAM. MONITOR RAM USAGE AND DECREASE -np IF YOUR RAM FILLS UP TOO MUCH!. Default: 8 4 8 (=8 processes for 2d, 4 for 3d_fullres and 8 for 3d_lowres if -c is at its default) --verbose Set this to print a lot of stuff. Useful for debugging. Will disable progrewss bar! Recommended for cluster environments 命令还是不对
08-22
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值